mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-02 20:32:22 +00:00
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 <jogo@openwrt.org> SVN-Revision: 39124
This commit is contained in:
parent
7a24db90aa
commit
5c2aee90ac
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user