of/device: Replace struct of_device with struct platform_device
[linux-2.6-block.git] / drivers / rtc / rtc-mpc5121.c
index db5d8c416d26a18e6fdb141c3bfa1d7c106e18d9..dfcdf0901d21e74ec4995d7b957fba2675a00537 100644 (file)
@@ -268,7 +268,7 @@ static const struct rtc_class_ops mpc5121_rtc_ops = {
        .update_irq_enable = mpc5121_rtc_update_irq_enable,
 };
 
-static int __devinit mpc5121_rtc_probe(struct of_device *op,
+static int __devinit mpc5121_rtc_probe(struct platform_device *op,
                                        const struct of_device_id *match)
 {
        struct mpc5121_rtc_data *rtc;
@@ -338,7 +338,7 @@ out_free:
        return err;
 }
 
-static int __devexit mpc5121_rtc_remove(struct of_device *op)
+static int __devexit mpc5121_rtc_remove(struct platform_device *op)
 {
        struct mpc5121_rtc_data *rtc = dev_get_drvdata(&op->dev);
        struct mpc5121_rtc_regs __iomem *regs = rtc->regs;