Commit d9b830fa authored by Axel Lin's avatar Axel Lin Committed by Dmitry Torokhov

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: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent db0b34b0
...@@ -282,7 +282,7 @@ static int __devinit mpu3050_probe(struct i2c_client *client, ...@@ -282,7 +282,7 @@ static int __devinit mpu3050_probe(struct i2c_client *client,
err_pm_set_suspended: err_pm_set_suspended:
pm_runtime_set_suspended(&client->dev); pm_runtime_set_suspended(&client->dev);
err_free_mem: err_free_mem:
input_unregister_device(idev); input_free_device(idev);
kfree(sensor); kfree(sensor);
return error; return error;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment