projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
123f94f
)
of/dma: fix build breakage in ppc4xx adma driver
author
Dan Williams
<
[email protected]
>
Fri, 2 Jul 2010 21:46:17 +0000
(15:46 -0600)
committer
Grant Likely
<
[email protected]
>
Fri, 2 Jul 2010 21:46:17 +0000
(15:46 -0600)
Convert ppc4xx adma driver to use new node pointer location
Signed-off-by: Dan Williams <
[email protected]
>
Acked-by: Anatolij Gustschin <
[email protected]
>
Signed-off-by: Grant Likely <
[email protected]
>
drivers/dma/ppc4xx/adma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/ppc4xx/adma.c
b/drivers/dma/ppc4xx/adma.c
index 5a22ca6927e5da6bd10b1abe04736218e0b31459..7c3747902a37ad29f7a1031dd7039c69556d3ea3 100644
(file)
--- a/
drivers/dma/ppc4xx/adma.c
+++ b/
drivers/dma/ppc4xx/adma.c
@@
-4257,10
+4257,12
@@
static int ppc440spe_adma_setup_irqs(struct ppc440spe_adma_device *adev,
struct ppc440spe_adma_chan *chan,
int *initcode)
{
+ struct of_device *ofdev;
struct device_node *np;
int ret;
- np = container_of(adev->dev, struct of_device, dev)->node;
+ ofdev = container_of(adev->dev, struct of_device, dev);
+ np = ofdev->dev.of_node;
if (adev->id != PPC440SPE_XOR_ID) {
adev->err_irq = irq_of_parse_and_map(np, 1);
if (adev->err_irq == NO_IRQ) {