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>5.4-rM2-2.2.x-imx-squashed
parent
745ccd66e5
commit
4a079ef60b
|
@ -433,9 +433,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);
|
||||
|
|
Loading…
Reference in New Issue