[CELL] spufs: fix array size of channel index
authorJeremy Kerr <jk@ozlabs.org>
Fri, 20 Jul 2007 19:39:35 +0000 (21:39 +0200)
committerArnd Bergmann <arnd@klappe.arndb.de>
Fri, 20 Jul 2007 19:41:53 +0000 (21:41 +0200)
commitdaced0f718b92b0bcdb9790622c255d4660f51ce
tree49c32f0eb96df42c3867879d2723a45d44f9e42f
parent27b1ea091f0c088ecad0d492f37fbe7b8d54d7dc
[CELL] spufs: fix array size of channel index

Based on a fix from Masato Noguchi <Masato.Noguchi@jp.sony.com>.

Remove the (incorrect) array size declarations in the spufs channel
arrays, and use ARRAY_SIZE rather than hardcoded values.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
arch/powerpc/platforms/cell/spufs/switch.c