]> err.no Git - linux-2.6/commit
[PATCH] scx200_gpio: use 1 cdev for N minors, not N for N
authorJim Cromie <jim.cromie@gmail.com>
Fri, 14 Jul 2006 07:24:16 +0000 (00:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 15 Jul 2006 04:53:53 +0000 (21:53 -0700)
commit635adb6cd25c8f816c9017a0a0349cd389eafcd3
tree411268749d87ebebff2183990d776b4571c7e76a
parentae2d1f2f5b59d00b39283c52dc4ee675397bbacd
[PATCH] scx200_gpio: use 1 cdev for N minors, not N for N

Remove the scx200_gpio's cdev-array & ksalloc, replacing it with a single
static struct cdev, which is sufficient for all the pins.

cdev_put is commented out since kernel wont link properly with it, and its
apparently not needed.

With these patches, this driver continues to work with Chris Boot's
leds_48xx driver.

Signed-off-by  Jim Cromie <jim.cromie@gmail.com>

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/scx200_gpio.c