]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/rtc/rtc-sunxi.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
[linux.git] / drivers / rtc / rtc-sunxi.c
index 0bb69a7f9e462c2d32fb7425a34a7ff1c79ec4ef..9b6f2483c1c6ac9d40f082ea1e850592f2fb2344 100644 (file)
@@ -472,15 +472,7 @@ static int sunxi_rtc_probe(struct platform_device *pdev)
 
        chip->rtc->ops = &sunxi_rtc_ops;
 
-       ret = rtc_register_device(chip->rtc);
-       if (ret) {
-               dev_err(&pdev->dev, "unable to register device\n");
-               return ret;
-       }
-
-       dev_info(&pdev->dev, "RTC enabled\n");
-
-       return 0;
+       return rtc_register_device(chip->rtc);
 }
 
 static struct platform_driver sunxi_rtc_driver = {