From: Jonas Gorski Date: Tue, 17 Dec 2013 19:05:03 +0000 (+0000) Subject: gpio-button-hotplug: fix crash on remove X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e0b3c0caf934f29d592666f3a9cc8b3966463f10;p=openwrt%2Fsvn-archive%2Farchive.git gpio-button-hotplug: fix crash on remove Don't call gpio_keys_remove recursively. Setting the platform data to NULL triggered an oops on the second iteration, so there was no infinate loop. Signed-off-by: Jonas Gorski SVN-Revision: 39124 --- diff --git a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c index 1a8b47691c..780736c89b 100644 --- a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c +++ b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c @@ -612,7 +612,7 @@ static int gpio_keys_remove(struct platform_device *pdev) if (bdev->polled) gpio_keys_polled_close(bdev); - return gpio_keys_remove(pdev); + return 0; } static struct platform_driver gpio_keys_driver = {