diff options
Diffstat (limited to 'drivers/dma/fsldma.c')
-rw-r--r-- | drivers/dma/fsldma.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index 1fdf180cbd67..8088b14ba5f7 100644 --- a/drivers/dma/fsldma.c +++ b/drivers/dma/fsldma.c | |||
@@ -1315,7 +1315,7 @@ static int __devinit fsldma_of_probe(struct of_device *op, | |||
1315 | INIT_LIST_HEAD(&fdev->common.channels); | 1315 | INIT_LIST_HEAD(&fdev->common.channels); |
1316 | 1316 | ||
1317 | /* ioremap the registers for use */ | 1317 | /* ioremap the registers for use */ |
1318 | fdev->regs = of_iomap(op->node, 0); | 1318 | fdev->regs = of_iomap(op->dev.of_node, 0); |
1319 | if (!fdev->regs) { | 1319 | if (!fdev->regs) { |
1320 | dev_err(&op->dev, "unable to ioremap registers\n"); | 1320 | dev_err(&op->dev, "unable to ioremap registers\n"); |
1321 | err = -ENOMEM; | 1321 | err = -ENOMEM; |
@@ -1323,7 +1323,7 @@ static int __devinit fsldma_of_probe(struct of_device *op, | |||
1323 | } | 1323 | } |
1324 | 1324 | ||
1325 | /* map the channel IRQ if it exists, but don't hookup the handler yet */ | 1325 | /* map the channel IRQ if it exists, but don't hookup the handler yet */ |
1326 | fdev->irq = irq_of_parse_and_map(op->node, 0); | 1326 | fdev->irq = irq_of_parse_and_map(op->dev.of_node, 0); |
1327 | 1327 | ||
1328 | dma_cap_set(DMA_MEMCPY, fdev->common.cap_mask); | 1328 | dma_cap_set(DMA_MEMCPY, fdev->common.cap_mask); |
1329 | dma_cap_set(DMA_INTERRUPT, fdev->common.cap_mask); | 1329 | dma_cap_set(DMA_INTERRUPT, fdev->common.cap_mask); |
@@ -1345,7 +1345,7 @@ static int __devinit fsldma_of_probe(struct of_device *op, | |||
1345 | * of_platform_bus_remove(). Instead, we manually instantiate every DMA | 1345 | * of_platform_bus_remove(). Instead, we manually instantiate every DMA |
1346 | * channel object. | 1346 | * channel object. |
1347 | */ | 1347 | */ |
1348 | for_each_child_of_node(op->node, child) { | 1348 | for_each_child_of_node(op->dev.of_node, child) { |
1349 | if (of_device_is_compatible(child, "fsl,eloplus-dma-channel")) { | 1349 | if (of_device_is_compatible(child, "fsl,eloplus-dma-channel")) { |
1350 | fsl_dma_chan_probe(fdev, child, | 1350 | fsl_dma_chan_probe(fdev, child, |
1351 | FSL_DMA_IP_85XX | FSL_DMA_BIG_ENDIAN, | 1351 | FSL_DMA_IP_85XX | FSL_DMA_BIG_ENDIAN, |
@@ -1411,10 +1411,13 @@ static const struct of_device_id fsldma_of_ids[] = { | |||
1411 | }; | 1411 | }; |
1412 | 1412 | ||
1413 | static struct of_platform_driver fsldma_of_driver = { | 1413 | static struct of_platform_driver fsldma_of_driver = { |
1414 | .name = "fsl-elo-dma", | 1414 | .driver = { |
1415 | .match_table = fsldma_of_ids, | 1415 | .name = "fsl-elo-dma", |
1416 | .probe = fsldma_of_probe, | 1416 | .owner = THIS_MODULE, |
1417 | .remove = fsldma_of_remove, | 1417 | .of_match_table = fsldma_of_ids, |
1418 | }, | ||
1419 | .probe = fsldma_of_probe, | ||
1420 | .remove = fsldma_of_remove, | ||
1418 | }; | 1421 | }; |
1419 | 1422 | ||
1420 | /*----------------------------------------------------------------------------*/ | 1423 | /*----------------------------------------------------------------------------*/ |