aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/of_device.c
diff options
context:
space:
mode:
authorGravatar Grant Likely <grant.likely@secretlab.ca> 2010-04-13 16:12:59 -0700
committerGravatar Grant Likely <grant.likely@secretlab.ca> 2010-05-22 00:10:40 -0600
commitcb6dc512b745292eaf123fedf437c211e27fb680 (patch)
tree56177ae8f827c346b9180aad8723be8e04b50153 /arch/powerpc/kernel/of_device.c
parentof: eliminate of_device->node and dev_archdata->{of,prom}_node (diff)
downloadlinux-cb6dc512b745292eaf123fedf437c211e27fb680.tar.gz
linux-cb6dc512b745292eaf123fedf437c211e27fb680.tar.bz2
linux-cb6dc512b745292eaf123fedf437c211e27fb680.zip
arch/powerpc: Move dma_mask from of_device into pdev_archdata
By moving dma_mask into pdev_archdata, and adding archdata to struct of_device, it makes it possible to substitute of_device with struct platform_device, which is a stepping stone to removing the of_platform bus entirely. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc/kernel/of_device.c')
-rw-r--r--arch/powerpc/kernel/of_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/of_device.c b/arch/powerpc/kernel/of_device.c
index 20b3474b6f6b..df78e0236a02 100644
--- a/arch/powerpc/kernel/of_device.c
+++ b/arch/powerpc/kernel/of_device.c
@@ -70,7 +70,7 @@ struct of_device *of_device_alloc(struct device_node *np,
return NULL;
dev->dev.of_node = of_node_get(np);
- dev->dev.dma_mask = &dev->dma_mask;
+ dev->dev.dma_mask = &dev->archdata.dma_mask;
dev->dev.parent = parent;
dev->dev.release = of_release_dev;