diff options
author | Udit Kumar <udit.kumar@nxp.com> | 2019-06-12 10:42:02 +0530 |
---|---|---|
committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2019-09-17 16:03:06 +0100 |
commit | 5c1237451c6106c0f0514756fa4ea995953404af (patch) | |
tree | 2974da0e1bab990efe1cb34881f9c94d8f15c3bb | |
parent | 5e563ce94fd81ba3534b2652bba758d9dd56056f (diff) |
ahci_qoriq: bug fix for ecc_addr
Original driver expect a register node with name "sata-ecc"
this node is of 64 bit wide.
In ACPI such nodes can be provided with QWordMemory, but
QWordMemory can not hold DescriptorName more than 4 characters.
Therefore this patch changes platform property retrival based
upon index instead of named.
Signed-off-by: Udit Kumar <udit.kumar@nxp.com>
-rw-r--r-- | drivers/ata/ahci_qoriq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ata/ahci_qoriq.c b/drivers/ata/ahci_qoriq.c index 8a6247f52c66..39363f14252b 100644 --- a/drivers/ata/ahci_qoriq.c +++ b/drivers/ata/ahci_qoriq.c @@ -440,9 +440,7 @@ static int ahci_qoriq_probe(struct platform_device *pdev) qoriq_priv->type = (enum ahci_qoriq_type)acpi_id->driver_data; if (unlikely(!ecc_initialized)) { - res = platform_get_resource_byname(pdev, - IORESOURCE_MEM, - "sata-ecc"); + res = platform_get_resource(pdev, IORESOURCE_MEM, 1); if (res) { qoriq_priv->ecc_addr = devm_ioremap_resource(dev, res); |