Skip to contentSkip to conversation

powerpc: fix a compile error in fsl_msi.c

PATCH New Kevin Hao 1 participant 1 message Jun 2, 2010 PowerPC

lore
Share & tools
lore

Kevin Hao

author
#0 lore raw

PATCH 1/1 powerpc: fix a compile error in fsl_msi.c

The commit 061ca4ad still use the old style to refer to device
node, and cause the following compile error. arch/powerpc/sysdev/fsl_msi.c: In function 'fsl_of_msi_probe':
arch/powerpc/sysdev/fsl_msi.c:350: error: 'struct of_device' has no member named 'node'

---
 arch/powerpc/sysdev/fsl_msi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/sysdev/fsl_msi.c +1 -1
index 0f5bee9..962c2d8 100644
@@ -347,7 +347,7 @@ static int __devinit fsl_of_msi_probe(struct of_device *dev,
 		goto error_out;
 	}
 	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)
 		offset = *p / IRQS_PER_MSI_REG;
 
Signature · 1 line
1.6.3.1