diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2010-08-16 04:20:59 +0200 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-08-16 23:13:28 +0200 |
commit | 60652d07a028595df5c2582e915325d643a3800d (patch) | |
tree | eee050fa6595eeb14adf97f3983a6ce104f93838 /drivers/ata/sata_dwc_460ex.c | |
parent | microblaze: Fix of: eliminate of_device->node and dev_archdata->{of,prom}_node (diff) | |
download | linux-60652d07a028595df5c2582e915325d643a3800d.tar.xz linux-60652d07a028595df5c2582e915325d643a3800d.zip |
ata: update for of_device to platform_device replacement
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/ata/sata_dwc_460ex.c')
-rw-r--r-- | drivers/ata/sata_dwc_460ex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c index ea24c1e51be2..2673a3d14806 100644 --- a/drivers/ata/sata_dwc_460ex.c +++ b/drivers/ata/sata_dwc_460ex.c @@ -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); |