summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-08-11 09:19:29 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-08-11 09:22:40 -0700
commitd9b830fa444c1f4955d0ee88f5af2aa24d2c7837 (patch)
tree975cf957f1be913ef9ed673cf362ea800fbf2a14 /drivers/input
parentdb0b34b07438d92c4c190998c42a502fbf90064e (diff)
downloadop-kernel-dev-d9b830fa444c1f4955d0ee88f5af2aa24d2c7837.zip
op-kernel-dev-d9b830fa444c1f4955d0ee88f5af2aa24d2c7837.tar.gz
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 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;
}
OpenPOWER on IntegriCloud