aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-ds3234.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-ds3234.c')
-rw-r--r--drivers/rtc/rtc-ds3234.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/rtc/rtc-ds3234.c b/drivers/rtc/rtc-ds3234.c
index ba98c0e9580d..4c9ba5368464 100644
--- a/drivers/rtc/rtc-ds3234.c
+++ b/drivers/rtc/rtc-ds3234.c
@@ -73,7 +73,7 @@ static int ds3234_read_time(struct device *dev, struct rtc_time *dt)
73 dt->tm_wday = bcd2bin(buf[3]) - 1; /* 0 = Sun */ 73 dt->tm_wday = bcd2bin(buf[3]) - 1; /* 0 = Sun */
74 dt->tm_mday = bcd2bin(buf[4]); 74 dt->tm_mday = bcd2bin(buf[4]);
75 dt->tm_mon = bcd2bin(buf[5] & 0x1f) - 1; /* 0 = Jan */ 75 dt->tm_mon = bcd2bin(buf[5] & 0x1f) - 1; /* 0 = Jan */
76 dt->tm_year = bcd2bin(buf[6] & 0xff) + 100; /* Assume 20YY */ 76 dt->tm_year = bcd2bin(buf[6] & 0xff) + 100; /* Assume 20YY */
77 77
78 return rtc_valid_tm(dt); 78 return rtc_valid_tm(dt);
79} 79}
@@ -156,18 +156,12 @@ static int ds3234_probe(struct spi_device *spi)
156 return 0; 156 return 0;
157} 157}
158 158
159static int ds3234_remove(struct spi_device *spi)
160{
161 return 0;
162}
163
164static struct spi_driver ds3234_driver = { 159static struct spi_driver ds3234_driver = {
165 .driver = { 160 .driver = {
166 .name = "ds3234", 161 .name = "ds3234",
167 .owner = THIS_MODULE, 162 .owner = THIS_MODULE,
168 }, 163 },
169 .probe = ds3234_probe, 164 .probe = ds3234_probe,
170 .remove = ds3234_remove,
171}; 165};
172 166
173module_spi_driver(ds3234_driver); 167module_spi_driver(ds3234_driver);