diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-08-11 12:19:29 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-08-11 12:22:40 -0400 |
commit | d9b830fa444c1f4955d0ee88f5af2aa24d2c7837 (patch) | |
tree | 975cf957f1be913ef9ed673cf362ea800fbf2a14 /drivers/input/misc/mpu3050.c | |
parent | db0b34b07438d92c4c190998c42a502fbf90064e (diff) |
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/mpu3050.c')
-rw-r--r-- | drivers/input/misc/mpu3050.c | 2 |
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: | |||
282 | err_pm_set_suspended: | 282 | err_pm_set_suspended: |
283 | pm_runtime_set_suspended(&client->dev); | 283 | pm_runtime_set_suspended(&client->dev); |
284 | err_free_mem: | 284 | err_free_mem: |
285 | input_unregister_device(idev); | 285 | input_free_device(idev); |
286 | kfree(sensor); | 286 | kfree(sensor); |
287 | return error; | 287 | return error; |
288 | } | 288 | } |