]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ata: update for of_device to platform_device replacement
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Aug 2010 02:20:59 +0000 (12:20 +1000)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 16 Aug 2010 21:13:28 +0000 (15:13 -0600)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/ata/sata_dwc_460ex.c

index ea24c1e51be221e167ebc7fc7c2bd2658aff8e58..2673a3d1480654ceec39f2ab144b15cde72ba72e 100644 (file)
@@ -1588,7 +1588,7 @@ static const struct ata_port_info sata_dwc_port_info[] = {
        },
 };
 
-static int sata_dwc_probe(struct of_device *ofdev,
+static int sata_dwc_probe(struct platform_device *ofdev,
                        const struct of_device_id *match)
 {
        struct sata_dwc_device *hsdev;
@@ -1702,7 +1702,7 @@ error_out:
        return err;
 }
 
-static int sata_dwc_remove(struct of_device *ofdev)
+static int sata_dwc_remove(struct platform_device *ofdev)
 {
        struct device *dev = &ofdev->dev;
        struct ata_host *host = dev_get_drvdata(dev);