diff options
Diffstat (limited to 'drivers/hwmon/lis3lv02d.c')
-rw-r--r-- | drivers/hwmon/lis3lv02d.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/lis3lv02d.c b/drivers/hwmon/lis3lv02d.c index 7f43a3b62a24..dbd0b055d4b9 100644 --- a/drivers/hwmon/lis3lv02d.c +++ b/drivers/hwmon/lis3lv02d.c | |||
@@ -333,6 +333,7 @@ void lis3lv02d_joystick_disable(void) | |||
333 | if (lis3_dev.irq) | 333 | if (lis3_dev.irq) |
334 | misc_deregister(&lis3lv02d_misc_device); | 334 | misc_deregister(&lis3lv02d_misc_device); |
335 | input_unregister_polled_device(lis3_dev.idev); | 335 | input_unregister_polled_device(lis3_dev.idev); |
336 | input_free_polled_device(lis3_dev.idev); | ||
336 | lis3_dev.idev = NULL; | 337 | lis3_dev.idev = NULL; |
337 | } | 338 | } |
338 | EXPORT_SYMBOL_GPL(lis3lv02d_joystick_disable); | 339 | EXPORT_SYMBOL_GPL(lis3lv02d_joystick_disable); |