diff options
author | Dan Carpenter <error27@gmail.com> | 2010-11-11 10:59:20 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-11-11 11:12:13 +0300 |
commit | 17d01f28e160f8a9c9ecda2e335d0047ec9e7388 (patch) | |
tree | e5fbbdafb5dd9484fede27340582e24abdf3f5f1 /Kconfig | |
parent | a4503199f66dd13ddce1c1bb830fd414d9669f88 (diff) | |
download | linux-17d01f28e160f8a9c9ecda2e335d0047ec9e7388.tar.xz |
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>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions