]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
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)
commit6f4f59c6c05c5ea365e8dc216f3812aa142a2b55
tree92b9d8124e1f75728135480a0be6588477a9c425
parent5728b4a3ba5ace557263e5ccb0bc7829e543acf5
The fix prevents kernel crash caused by twl4030 power button malfunction.

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>
drivers/i2c/chips/twl4030-pwrbutton.c