projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
646646a
)
lightsensor: cm3217: unregister earlysuspend when shutdown
author
黄涛
<huangtao@rock-chips.com>
Thu, 31 May 2012 01:42:00 +0000
(09:42 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Thu, 31 May 2012 01:43:27 +0000
(09:43 +0800)
drivers/input/lightsensor/cm3217.c
patch
|
blob
|
history
diff --git
a/drivers/input/lightsensor/cm3217.c
b/drivers/input/lightsensor/cm3217.c
index e50ed235de2c5f08586e3f8367e0e994e5842264..36fea403c6dc3e8e373592b22f9f0ed57f8052ee 100755
(executable)
--- a/
drivers/input/lightsensor/cm3217.c
+++ b/
drivers/input/lightsensor/cm3217.c
@@
-345,10
+345,17
@@
static const struct i2c_device_id cm3217_id[] = {
{ "lightsensor", 0 },
};
+static void cm3217_shutdown(struct i2c_client *client)
+{
+#ifdef CONFIG_HAS_EARLYSUSPEND
+ unregister_early_suspend(&cm3217_early_suspend);
+#endif
+}
static struct i2c_driver cm3217_driver = {
.probe = cm3217_probe,
.remove = __devexit_p(cm3217_remove),
+ .shutdown = cm3217_shutdown,
.id_table = cm3217_id,
.driver = {
.owner = THIS_MODULE,