original_kernel/drivers/gpio
Sergei Shtylyov d62668e1dd gpiolib: fix device_create() result check
In case of failure, device_create() returns not NULL but the error code.
The current code checks for non-NULL though which causes kernel oops in
sysfs_create_group() when device_create() fails.  Check for error using
IS_ERR() and propagate the error value using PTR_ERR() instead of fixed
-ENODEV code returned now...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-11-12 07:26:00 -08:00
..
Kconfig gpio: gpio support for ADP5520/ADP5501 MFD PMICs 2009-09-23 07:39:48 -07:00
Makefile gpio: gpio support for ADP5520/ADP5501 MFD PMICs 2009-09-23 07:39:48 -07:00
adp5520-gpio.c gpio: gpio support for ADP5520/ADP5501 MFD PMICs 2009-09-23 07:39:48 -07:00
bt8xxgpio.c
gpiolib.c gpiolib: fix device_create() result check 2009-11-12 07:26:00 -08:00
langwell_gpio.c
max732x.c
max7301.c
mc33880.c
mcp23s08.c
pca953x.c
pcf857x.c Merge branch 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging 2009-09-23 09:30:48 -07:00
pl061.c
twl4030-gpio.c twl4030-gpio: remove __devexit markings from remove func 2009-10-29 07:39:30 -07:00
ucb1400_gpio.c
vr41xx_giu.c
wm831x-gpio.c
xilinx_gpio.c