projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
060f559
)
drivers/rtc/rtc-max6900.c: remove empty function
author
Sachin Kamat
<
[email protected]
>
Wed, 3 Jul 2013 22:07:28 +0000
(15:07 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 3 Jul 2013 23:07:57 +0000
(16:07 -0700)
After the switch to devm_* functions and the removal of
rtc_device_unregister(), the 'remove' function does not do anything.
Delete it.
Signed-off-by: Sachin Kamat <
[email protected]
>
Cc: Dale Farnsworth <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rtc/rtc-max6900.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-max6900.c
b/drivers/rtc/rtc-max6900.c
index 8669d6d09a00da71c6db8d598d7409449c0aa00d..55969b1b771a344a69125e2d517f8a6cdfc8f335 100644
(file)
--- a/
drivers/rtc/rtc-max6900.c
+++ b/
drivers/rtc/rtc-max6900.c
@@
-212,11
+212,6
@@
static int max6900_rtc_set_time(struct device *dev, struct rtc_time *tm)
return max6900_i2c_set_time(to_i2c_client(dev), tm);
}
-static int max6900_remove(struct i2c_client *client)
-{
- return 0;
-}
-
static const struct rtc_class_ops max6900_rtc_ops = {
.read_time = max6900_rtc_read_time,
.set_time = max6900_rtc_set_time,
@@
-252,7
+247,6
@@
static struct i2c_driver max6900_driver = {
.name = "rtc-max6900",
},
.probe = max6900_probe,
- .remove = max6900_remove,
.id_table = max6900_id,
};