]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/rtc/rtc-sa1100.c
ide: drop 'name' parameter from ->init_chipset method
[linux-2.6-omap-h63xx.git] / drivers / rtc / rtc-sa1100.c
index e31a687b44b9e033b781cbbfbbfae397f42ae688..f47294c6014866e7c4800368b87c74c3c4f88edc 100644 (file)
@@ -366,14 +366,14 @@ static int sa1100_rtc_probe(struct platform_device *pdev)
                RCNR = 0;
        }
 
+       device_init_wakeup(&pdev->dev, 1);
+
        rtc = rtc_device_register(pdev->name, &pdev->dev, &sa1100_rtc_ops,
                                THIS_MODULE);
 
        if (IS_ERR(rtc))
                return PTR_ERR(rtc);
 
-       device_init_wakeup(&pdev->dev, 1);
-
        platform_set_drvdata(pdev, rtc);
 
        return 0;