diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-08-11 09:19:29 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-08-11 09:22:40 -0700 |
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 b95fac15b2e..f71dc728da5 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; } |