of/device: Replace struct of_device with struct platform_device
[firefly-linux-kernel-4.4.55.git] / drivers / crypto / amcc / crypto4xx_core.c
index 983530ba04a7e932c3a70ec692e719fe44cccb21..2b1baee525bcc6023ce065c699b3f0fa0642fa1b 100644 (file)
@@ -1150,7 +1150,7 @@ struct crypto4xx_alg_common crypto4xx_alg[] = {
 /**
  * Module Initialization Routine
  */
-static int __init crypto4xx_probe(struct of_device *ofdev,
+static int __init crypto4xx_probe(struct platform_device *ofdev,
                                  const struct of_device_id *match)
 {
        int rc;
@@ -1258,7 +1258,7 @@ err_alloc_dev:
        return rc;
 }
 
-static int __exit crypto4xx_remove(struct of_device *ofdev)
+static int __exit crypto4xx_remove(struct platform_device *ofdev)
 {
        struct device *dev = &ofdev->dev;
        struct crypto4xx_core_device *core_dev = dev_get_drvdata(dev);