Skip to content

Commit

Permalink
of/dma: fix build breakage in ppc4xx adma driver
Browse files Browse the repository at this point in the history
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]>
djbw authored and glikely committed Jul 2, 2010
1 parent 123f94f commit 3e6b02d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/dma/ppc4xx/adma.c
Original file line number Diff line number Diff line change
@@ -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) {

0 comments on commit 3e6b02d

Please sign in to comment.