aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-m48t86.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-m48t86.c')
-rw-r--r--drivers/rtc/rtc-m48t86.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-m48t86.c b/drivers/rtc/rtc-m48t86.c
index 911b27fc8488..f6e7ee04f3dc 100644
--- a/drivers/rtc/rtc-m48t86.c
+++ b/drivers/rtc/rtc-m48t86.c
@@ -151,10 +151,8 @@ static int __devinit m48t86_rtc_probe(struct platform_device *dev)
151 struct rtc_device *rtc = rtc_device_register("m48t86", 151 struct rtc_device *rtc = rtc_device_register("m48t86",
152 &dev->dev, &m48t86_rtc_ops, THIS_MODULE); 152 &dev->dev, &m48t86_rtc_ops, THIS_MODULE);
153 153
154 if (IS_ERR(rtc)) { 154 if (IS_ERR(rtc))
155 dev_err(&dev->dev, "unable to register\n");
156 return PTR_ERR(rtc); 155 return PTR_ERR(rtc);
157 }
158 156
159 platform_set_drvdata(dev, rtc); 157 platform_set_drvdata(dev, rtc);
160 158