of/powerpc: fix fsl_msi device node pointer
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
committed by
Grant Likely
parent
b74dbf2aed
commit
ee227c577c
@@ -347,7 +347,7 @@ static int __devinit fsl_of_msi_probe(struct of_device *dev,
|
|||||||
goto error_out;
|
goto error_out;
|
||||||
}
|
}
|
||||||
offset = 0;
|
offset = 0;
|
||||||
p = of_get_property(dev->node, "msi-available-ranges", &len);
|
p = of_get_property(dev->dev.of_node, "msi-available-ranges", &len);
|
||||||
if (p)
|
if (p)
|
||||||
offset = *p / IRQS_PER_MSI_REG;
|
offset = *p / IRQS_PER_MSI_REG;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user