projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db0b34b
)
Input: mpu3050 - correct call to input_free_device
author
Axel Lin
<axel.lin@gmail.com>
Thu, 11 Aug 2011 16:19:29 +0000
(09:19 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Thu, 11 Aug 2011 16:22:40 +0000
(09:22 -0700)
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>
drivers/input/misc/mpu3050.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/misc/mpu3050.c
b/drivers/input/misc/mpu3050.c
index b95fac15b2ea46ec40af163359a71bfb033ecef2..f71dc728da58adcad257da28f053b98fc29fa3fa 100644
(file)
--- 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;
}