aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-max8998.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-max8998.c')
-rw-r--r--drivers/rtc/rtc-max8998.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/rtc/rtc-max8998.c b/drivers/rtc/rtc-max8998.c
index d5af7baa48b5..5388336a2c4c 100644
--- a/drivers/rtc/rtc-max8998.c
+++ b/drivers/rtc/rtc-max8998.c
@@ -274,7 +274,7 @@ static int max8998_rtc_probe(struct platform_device *pdev)
274 if (IS_ERR(info->rtc_dev)) { 274 if (IS_ERR(info->rtc_dev)) {
275 ret = PTR_ERR(info->rtc_dev); 275 ret = PTR_ERR(info->rtc_dev);
276 dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret); 276 dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret);
277 goto out_rtc; 277 return ret;
278 } 278 }
279 279
280 ret = devm_request_threaded_irq(&pdev->dev, info->irq, NULL, 280 ret = devm_request_threaded_irq(&pdev->dev, info->irq, NULL,
@@ -292,15 +292,6 @@ static int max8998_rtc_probe(struct platform_device *pdev)
292 } 292 }
293 293
294 return 0; 294 return 0;
295
296out_rtc:
297 platform_set_drvdata(pdev, NULL);
298 return ret;
299}
300
301static int max8998_rtc_remove(struct platform_device *pdev)
302{
303 return 0;
304} 295}
305 296
306static const struct platform_device_id max8998_rtc_id[] = { 297static const struct platform_device_id max8998_rtc_id[] = {
@@ -315,7 +306,6 @@ static struct platform_driver max8998_rtc_driver = {
315 .owner = THIS_MODULE, 306 .owner = THIS_MODULE,
316 }, 307 },
317 .probe = max8998_rtc_probe, 308 .probe = max8998_rtc_probe,
318 .remove = max8998_rtc_remove,
319 .id_table = max8998_rtc_id, 309 .id_table = max8998_rtc_id,
320}; 310};
321 311