diff options
Diffstat (limited to 'drivers/rtc/rtc-isl12022.c')
-rw-r--r-- | drivers/rtc/rtc-isl12022.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/rtc/rtc-isl12022.c b/drivers/rtc/rtc-isl12022.c index a1bbbb8de029..5dbdc4405718 100644 --- a/drivers/rtc/rtc-isl12022.c +++ b/drivers/rtc/rtc-isl12022.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/rtc.h> | 16 | #include <linux/rtc.h> |
17 | #include <linux/slab.h> | 17 | #include <linux/slab.h> |
18 | #include <linux/module.h> | 18 | #include <linux/module.h> |
19 | #include <linux/err.h> | ||
19 | 20 | ||
20 | #define DRV_VERSION "0.1" | 21 | #define DRV_VERSION "0.1" |
21 | 22 | ||
@@ -267,15 +268,7 @@ static int isl12022_probe(struct i2c_client *client, | |||
267 | isl12022->rtc = devm_rtc_device_register(&client->dev, | 268 | isl12022->rtc = devm_rtc_device_register(&client->dev, |
268 | isl12022_driver.driver.name, | 269 | isl12022_driver.driver.name, |
269 | &isl12022_rtc_ops, THIS_MODULE); | 270 | &isl12022_rtc_ops, THIS_MODULE); |
270 | if (IS_ERR(isl12022->rtc)) | 271 | return PTR_RET(isl12022->rtc); |
271 | return PTR_ERR(isl12022->rtc); | ||
272 | |||
273 | return 0; | ||
274 | } | ||
275 | |||
276 | static int isl12022_remove(struct i2c_client *client) | ||
277 | { | ||
278 | return 0; | ||
279 | } | 272 | } |
280 | 273 | ||
281 | static const struct i2c_device_id isl12022_id[] = { | 274 | static const struct i2c_device_id isl12022_id[] = { |
@@ -289,7 +282,6 @@ static struct i2c_driver isl12022_driver = { | |||
289 | .name = "rtc-isl12022", | 282 | .name = "rtc-isl12022", |
290 | }, | 283 | }, |
291 | .probe = isl12022_probe, | 284 | .probe = isl12022_probe, |
292 | .remove = isl12022_remove, | ||
293 | .id_table = isl12022_id, | 285 | .id_table = isl12022_id, |
294 | }; | 286 | }; |
295 | 287 | ||