mirror of https://github.com/torvalds/linux.git
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 | ||
| Kconfig | ||
| Makefile | ||
| 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_remote.c | ||
| ati_remote2.c | ||
| atlas_btns.c | ||
| bfin_rotary.c | ||
| cm109.c | ||
| cobalt_btns.c | ||
| dm355evm_keys.c | ||
| hp_sdc_rtc.c | ||
| ixp4xx-beeper.c | ||
| keyspan_remote.c | ||
| m68kspkr.c | ||
| 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 | ||