summaryrefslogtreecommitdiff
path: root/drivers/input/misc
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-08-11 16:19:29 (GMT)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-08-11 16:22:40 (GMT)
commitd9b830fa444c1f4955d0ee88f5af2aa24d2c7837 (patch)
tree975cf957f1be913ef9ed673cf362ea800fbf2a14 /drivers/input/misc
parentdb0b34b07438d92c4c190998c42a502fbf90064e (diff)
downloadlinux-d9b830fa444c1f4955d0ee88f5af2aa24d2c7837.tar.xz
Input: mpu3050 - correct call to input_free_device
input_free_device() should be used if input_register_device() was not called yet or if it failed. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r--drivers/input/misc/mpu3050.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/mpu3050.c b/drivers/input/misc/mpu3050.c
index b95fac1..f71dc72 100644
--- a/drivers/input/misc/mpu3050.c
+++ b/drivers/input/misc/mpu3050.c
@@ -282,7 +282,7 @@ err_free_irq:
err_pm_set_suspended:
pm_runtime_set_suspended(&client->dev);
err_free_mem:
- input_unregister_device(idev);
+ input_free_device(idev);
kfree(sensor);
return error;
}