Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60652d07 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Grant Likely
Browse files

ata: update for of_device to platform_device replacement

parent 088ab302
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 @@ static int sata_dwc_probe(struct of_device *ofdev,
	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);