Commit 3e6b02d9f5a9715f7d4ff9e0978e5f9cef53d31f
Committed by
Grant Likely
1 parent
123f94f22e
Exists in
master
and in
4 other branches
of/dma: fix build breakage in ppc4xx adma driver
Convert ppc4xx adma driver to use new node pointer location Signed-off-by: Dan Williams <dan.j.williams@intel.com> Acked-by: Anatolij Gustschin <agust@denx.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
drivers/dma/ppc4xx/adma.c
... | ... | @@ -4257,10 +4257,12 @@ |
4257 | 4257 | struct ppc440spe_adma_chan *chan, |
4258 | 4258 | int *initcode) |
4259 | 4259 | { |
4260 | + struct of_device *ofdev; | |
4260 | 4261 | struct device_node *np; |
4261 | 4262 | int ret; |
4262 | 4263 | |
4263 | - np = container_of(adev->dev, struct of_device, dev)->node; | |
4264 | + ofdev = container_of(adev->dev, struct of_device, dev); | |
4265 | + np = ofdev->dev.of_node; | |
4264 | 4266 | if (adev->id != PPC440SPE_XOR_ID) { |
4265 | 4267 | adev->err_irq = irq_of_parse_and_map(np, 1); |
4266 | 4268 | if (adev->err_irq == NO_IRQ) { |