diff options
-rw-r--r-- | drivers/input/touchscreen/wm97xx-core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/wm97xx-core.c b/drivers/input/touchscreen/wm97xx-core.c index cbfef1ea7e30..770537c14628 100644 --- a/drivers/input/touchscreen/wm97xx-core.c +++ b/drivers/input/touchscreen/wm97xx-core.c | |||
@@ -684,8 +684,7 @@ static int wm97xx_probe(struct device *dev) | |||
684 | touch_reg_err: | 684 | touch_reg_err: |
685 | platform_device_put(wm->touch_dev); | 685 | platform_device_put(wm->touch_dev); |
686 | touch_err: | 686 | touch_err: |
687 | platform_device_unregister(wm->battery_dev); | 687 | platform_device_del(wm->battery_dev); |
688 | wm->battery_dev = NULL; | ||
689 | batt_reg_err: | 688 | batt_reg_err: |
690 | platform_device_put(wm->battery_dev); | 689 | platform_device_put(wm->battery_dev); |
691 | batt_err: | 690 | batt_err: |