of/device: Replace struct of_device with struct platform_device
[linux-2.6-block.git] / drivers / spi / mpc512x_psc_spi.c
index 10baac3f8ea53d1ed3a8cafe6b9d90dd561eb771..cddbfceb324f6ccbef716395ddbf2190e3538435 100644 (file)
@@ -507,7 +507,7 @@ static int __exit mpc512x_psc_spi_do_remove(struct device *dev)
        return 0;
 }
 
-static int __init mpc512x_psc_spi_of_probe(struct of_device *op,
+static int __init mpc512x_psc_spi_of_probe(struct platform_device *op,
                                           const struct of_device_id *match)
 {
        const u32 *regaddr_p;
@@ -539,7 +539,7 @@ static int __init mpc512x_psc_spi_of_probe(struct of_device *op,
                                irq_of_parse_and_map(op->dev.of_node, 0), id);
 }
 
-static int __exit mpc512x_psc_spi_of_remove(struct of_device *op)
+static int __exit mpc512x_psc_spi_of_remove(struct platform_device *op)
 {
        return mpc512x_psc_spi_do_remove(&op->dev);
 }