The fix prevents kernel crash caused by twl4030 power button malfunction.
authorRoman Tereshonkov <roman.tereshonkov@nokia.com>
Tue, 17 Jun 2008 13:48:06 +0000 (16:48 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 23 Jun 2008 10:43:27 +0000 (13:43 +0300)
If i2c connection is broken the twl4030 power button driver is unregistered.
The function input_free_device has to be called only when
input_register_device failed. Otherwise input_unregister_device is used.

Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

No differences found