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>
This commit is contained in:
Axel Lin 2011-08-11 09:19:29 -07:00 committed by Dmitry Torokhov
parent db0b34b074
commit d9b830fa44
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}