diff options
Diffstat (limited to 'drivers/rtc/rtc-m48t35.c')
-rw-r--r-- | drivers/rtc/rtc-m48t35.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/rtc/rtc-m48t35.c b/drivers/rtc/rtc-m48t35.c index 37444246e5e4..23c3779a5f2b 100644 --- a/drivers/rtc/rtc-m48t35.c +++ b/drivers/rtc/rtc-m48t35.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/platform_device.h> | 20 | #include <linux/platform_device.h> |
21 | #include <linux/bcd.h> | 21 | #include <linux/bcd.h> |
22 | #include <linux/io.h> | 22 | #include <linux/io.h> |
23 | #include <linux/err.h> | ||
23 | 24 | ||
24 | #define DRV_VERSION "1.0" | 25 | #define DRV_VERSION "1.0" |
25 | 26 | ||
@@ -174,15 +175,7 @@ static int m48t35_probe(struct platform_device *pdev) | |||
174 | 175 | ||
175 | priv->rtc = devm_rtc_device_register(&pdev->dev, "m48t35", | 176 | priv->rtc = devm_rtc_device_register(&pdev->dev, "m48t35", |
176 | &m48t35_ops, THIS_MODULE); | 177 | &m48t35_ops, THIS_MODULE); |
177 | if (IS_ERR(priv->rtc)) | 178 | return PTR_RET(priv->rtc); |
178 | return PTR_ERR(priv->rtc); | ||
179 | |||
180 | return 0; | ||
181 | } | ||
182 | |||
183 | static int m48t35_remove(struct platform_device *pdev) | ||
184 | { | ||
185 | return 0; | ||
186 | } | 179 | } |
187 | 180 | ||
188 | static struct platform_driver m48t35_platform_driver = { | 181 | static struct platform_driver m48t35_platform_driver = { |
@@ -191,7 +184,6 @@ static struct platform_driver m48t35_platform_driver = { | |||
191 | .owner = THIS_MODULE, | 184 | .owner = THIS_MODULE, |
192 | }, | 185 | }, |
193 | .probe = m48t35_probe, | 186 | .probe = m48t35_probe, |
194 | .remove = m48t35_remove, | ||
195 | }; | 187 | }; |
196 | 188 | ||
197 | module_platform_driver(m48t35_platform_driver); | 189 | module_platform_driver(m48t35_platform_driver); |