android_kernel_xiaomi_sm8350/drivers/input/misc
Dan Carpenter 17d01f28e1 Input: pcf8574_keypad - fix error handling in pcf8574_kp_probe
It is not allowed to call input_free_device() after calling
input_unregister_device() because input devices are refcounted and
unregister will free the device if we were holding he last referenc.

The preferred style in input/ is to make input_register_device() the
last function in the probe which can fail.  That way we don't need to
call input_unregister_device().

Also do not need to call input_set_drvdata() as nothing in the driver
uses the data.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-11-11 00:12:13 -08:00
..
88pm860x_onkey.c
ab8500-ponkey.c Input: ab8500-ponkey - fix IRQ freeing in error path 2010-10-24 21:56:17 -07:00
ad714x-i2c.c
ad714x-spi.c
ad714x.c
ad714x.h
adxl34x-i2c.c
adxl34x-spi.c
adxl34x.c
adxl34x.h
apanel.c
ati_remote2.c Input: ati_remote2 - switch to using new keycode interface 2010-09-15 23:10:53 -07:00
ati_remote.c
atlas_btns.c
bfin_rotary.c
cm109.c Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
cobalt_btns.c
dm355evm_keys.c
hp_sdc_rtc.c Merge branch 'trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl 2010-10-22 10:49:54 -07:00
ixp4xx-beeper.c
Kconfig Input: add support for PowerOn button on the AB8500 MFD 2010-09-05 12:19:10 -07:00
keyspan_remote.c
m68kspkr.c
Makefile Input: add support for PowerOn button on the AB8500 MFD 2010-09-05 12:19:10 -07:00
max8925_onkey.c input: Monitor both onkey up and down event 2010-10-29 00:29:46 +02:00
pcap_keys.c
pcf8574_keypad.c Input: pcf8574_keypad - fix error handling in pcf8574_kp_probe 2010-11-11 00:12:13 -08:00
pcf50633-input.c
pcspkr.c
powermate.c Input: return -ENOMEM in select drivers when memory allocation fails 2010-10-13 07:49:23 -07:00
pwm-beeper.c
rb532_button.c
rotary_encoder.c
sgi_btns.c
sparcspkr.c
twl4030-pwrbutton.c
twl4030-vibra.c
uinput.c Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl 2010-10-22 10:52:56 -07:00
winbond-cir.c
wistron_btns.c
wm831x-on.c
yealink.c
yealink.h