提交 60652d07 编写于 作者: S Stephen Rothwell 提交者: Grant Likely

ata: update for of_device to platform_device replacement

Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 088ab302
...@@ -1588,7 +1588,7 @@ static const struct ata_port_info sata_dwc_port_info[] = { ...@@ -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) const struct of_device_id *match)
{ {
struct sata_dwc_device *hsdev; struct sata_dwc_device *hsdev;
...@@ -1702,7 +1702,7 @@ static int sata_dwc_probe(struct of_device *ofdev, ...@@ -1702,7 +1702,7 @@ static int sata_dwc_probe(struct of_device *ofdev,
return err; 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 device *dev = &ofdev->dev;
struct ata_host *host = dev_get_drvdata(dev); struct ata_host *host = dev_get_drvdata(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册