17d01f28e1
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> |
||
---|---|---|
.. | ||
88pm860x_onkey.c | ||
ab8500-ponkey.c | ||
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 | ||
ati_remote.c | ||
atlas_btns.c | ||
bfin_rotary.c | ||
cm109.c | ||
cobalt_btns.c | ||
dm355evm_keys.c | ||
hp_sdc_rtc.c | ||
ixp4xx-beeper.c | ||
Kconfig | ||
keyspan_remote.c | ||
m68kspkr.c | ||
Makefile | ||
max8925_onkey.c | ||
pcap_keys.c | ||
pcf8574_keypad.c | ||
pcf50633-input.c | ||
pcspkr.c | ||
powermate.c | ||
pwm-beeper.c | ||
rb532_button.c | ||
rotary_encoder.c | ||
sgi_btns.c | ||
sparcspkr.c | ||
twl4030-pwrbutton.c | ||
twl4030-vibra.c | ||
uinput.c | ||
winbond-cir.c | ||
wistron_btns.c | ||
wm831x-on.c | ||
yealink.c | ||
yealink.h |