[PATCH] pc8736x_gpio: fix re-modprobe errors: fix/finish cdev-init
commitbabcfade47371eea81fd7f24d892b5ff5b1786ea
authorJim Cromie <jim.cromie@gmail.com>
Mon, 10 Jul 2006 11:45:37 +0000 (10 04:45 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 10 Jul 2006 20:24:26 +0000 (10 13:24 -0700)
treea0b5f1ce6d0ab758f78a35a1e8fd0ce07c8572f3
parent27385085f19a9bc9b147905554e6e2509fdaceb2
[PATCH] pc8736x_gpio: fix re-modprobe errors: fix/finish cdev-init

- Switch from register_chrdev() to   (register|alloc)_chrdev_region().

- use a cdev.  This was intended for original patchset, but was
  overlooked.

  We use a single cdev for all pins (minor device-numbers), as gleaned
  from cs5535_gpio, and in contrast to whats currently done in scx200_gpio
  (which I'll fix soon)

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/pc8736x_gpio.c