[PATCH 1/2] of/powerpc: fix fsl_msi device node pointer
Grant Likely
grant.likely at secretlab.ca
Thu Jun 3 14:50:45 EST 2010
On Wed, Jun 2, 2010 at 10:03 PM, Wolfram Sang <w.sang at pengutronix.de> wrote:
> Signed-off-by: Wolfram Sang <w.sang at pengutronix.de>
> Cc: Grant Likely <grant.likely at secretlab.ca>
> ---
> arch/powerpc/sysdev/fsl_msi.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
Linus, I've also added this one to my tree. Wolfram did an coccinelle
patch and hasn't found any more instances of this breakage.
g.
>
> diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c
> index 0f5bee9..962c2d8 100644
> --- a/arch/powerpc/sysdev/fsl_msi.c
> +++ b/arch/powerpc/sysdev/fsl_msi.c
> @@ -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;
>
> --
> 1.7.0
>
>
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
More information about the devicetree-discuss
mailing list