of/dma: fix build breakage in ppc4xx adma driver
authorAnatolij Gustschin <agust@denx.de>
Thu, 3 Jun 2010 00:46:37 +0000 (02:46 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 3 Jun 2010 03:02:39 +0000 (21:02 -0600)
Fixes build error caused by the OF device_node
pointer being moved into struct device

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/dma/ppc4xx/adma.c

index fa98abe4686fb06598c6f8b318e4866dff1f41be..5a22ca6927e5da6bd10b1abe04736218e0b31459 100644 (file)
@@ -4394,7 +4394,7 @@ static void ppc440spe_adma_release_irqs(struct ppc440spe_adma_device *adev,
 static int __devinit ppc440spe_adma_probe(struct of_device *ofdev,
                                          const struct of_device_id *match)
 {
-       struct device_node *np = ofdev->node;
+       struct device_node *np = ofdev->dev.of_node;
        struct resource res;
        struct ppc440spe_adma_device *adev;
        struct ppc440spe_adma_chan *chan;
@@ -4626,7 +4626,7 @@ out:
 static int __devexit ppc440spe_adma_remove(struct of_device *ofdev)
 {
        struct ppc440spe_adma_device *adev = dev_get_drvdata(&ofdev->dev);
-       struct device_node *np = ofdev->node;
+       struct device_node *np = ofdev->dev.of_node;
        struct resource res;
        struct dma_chan *chan, *_chan;
        struct ppc_dma_chan_ref *ref, *_ref;