From 6f4f59c6c05c5ea365e8dc216f3812aa142a2b55 Mon Sep 17 00:00:00 2001 From: Roman Tereshonkov Date: Tue, 17 Jun 2008 16:48:06 +0300 Subject: [PATCH] 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 Signed-off-by: Tony Lindgren --- Reading git-format-patch failed