of/device: Replace struct of_device with struct platform_device
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / mtd / nand / socrates_nand.c
index cc728b12de82d4446315f91c165a032aa15f1c4b..a8e403eebedb558dc8d77308b47572aa0d4fcd79 100644 (file)
@@ -162,7 +162,7 @@ static const char *part_probes[] = { "cmdlinepart", NULL };
 /*
  * Probe for the NAND device.
  */
-static int __devinit socrates_nand_probe(struct of_device *ofdev,
+static int __devinit socrates_nand_probe(struct platform_device *ofdev,
                                         const struct of_device_id *ofid)
 {
        struct socrates_nand_host *host;
@@ -276,7 +276,7 @@ out:
 /*
  * Remove a NAND device.
  */
-static int __devexit socrates_nand_remove(struct of_device *ofdev)
+static int __devexit socrates_nand_remove(struct platform_device *ofdev)
 {
        struct socrates_nand_host *host = dev_get_drvdata(&ofdev->dev);
        struct mtd_info *mtd = &host->mtd;