summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-08-11 18:19:29 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-08-11 18:22:40 +0200
commitd9b830fa444c1f4955d0ee88f5af2aa24d2c7837 (patch)
tree975cf957f1be913ef9ed673cf362ea800fbf2a14 /drivers/input
parentInput: bcm5974 - add support for touchpads found in MacBookAir4,2 (diff)
downloadlinux-d9b830fa444c1f4955d0ee88f5af2aa24d2c7837.tar.xz
linux-d9b830fa444c1f4955d0ee88f5af2aa24d2c7837.zip
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')
-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 b95fac15b2ea..f71dc728da58 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;
}