diff options
| -rw-r--r-- | arch/microblaze/include/asm/device.h | 1 | ||||
| -rw-r--r-- | arch/microblaze/include/asm/of_device.h | 2 | ||||
| -rw-r--r-- | arch/microblaze/kernel/of_device.c | 2 | ||||
| -rw-r--r-- | arch/microblaze/kernel/of_platform.c | 2 |
4 files changed, 4 insertions, 3 deletions
diff --git a/arch/microblaze/include/asm/device.h b/arch/microblaze/include/asm/device.h index 15b0058aa7ff..123b2fe72d01 100644 --- a/arch/microblaze/include/asm/device.h +++ b/arch/microblaze/include/asm/device.h | |||
| @@ -18,6 +18,7 @@ struct dev_archdata { | |||
| 18 | }; | 18 | }; |
| 19 | 19 | ||
| 20 | struct pdev_archdata { | 20 | struct pdev_archdata { |
| 21 | u64 dma_mask; | ||
| 21 | }; | 22 | }; |
| 22 | 23 | ||
| 23 | #endif /* _ASM_MICROBLAZE_DEVICE_H */ | 24 | #endif /* _ASM_MICROBLAZE_DEVICE_H */ |
diff --git a/arch/microblaze/include/asm/of_device.h b/arch/microblaze/include/asm/of_device.h index ab25a40b481c..73cb98040982 100644 --- a/arch/microblaze/include/asm/of_device.h +++ b/arch/microblaze/include/asm/of_device.h | |||
| @@ -21,8 +21,8 @@ | |||
| 21 | * probed using OF properties. | 21 | * probed using OF properties. |
| 22 | */ | 22 | */ |
| 23 | struct of_device { | 23 | struct of_device { |
| 24 | u64 dma_mask; /* DMA mask */ | ||
| 25 | struct device dev; /* Generic device interface */ | 24 | struct device dev; /* Generic device interface */ |
| 25 | struct pdev_archdata archdata; | ||
| 26 | }; | 26 | }; |
| 27 | 27 | ||
| 28 | extern ssize_t of_device_get_modalias(struct of_device *ofdev, | 28 | extern ssize_t of_device_get_modalias(struct of_device *ofdev, |
diff --git a/arch/microblaze/kernel/of_device.c b/arch/microblaze/kernel/of_device.c index ac7e6e10d0ab..b372787886ed 100644 --- a/arch/microblaze/kernel/of_device.c +++ b/arch/microblaze/kernel/of_device.c | |||
| @@ -50,7 +50,7 @@ struct of_device *of_device_alloc(struct device_node *np, | |||
| 50 | return NULL; | 50 | return NULL; |
| 51 | 51 | ||
| 52 | dev->dev.of_node = of_node_get(np); | 52 | dev->dev.of_node = of_node_get(np); |
| 53 | dev->dev.dma_mask = &dev->dma_mask; | 53 | dev->dev.dma_mask = &dev->archdata.dma_mask; |
| 54 | dev->dev.parent = parent; | 54 | dev->dev.parent = parent; |
| 55 | dev->dev.release = of_release_dev; | 55 | dev->dev.release = of_release_dev; |
| 56 | 56 | ||
diff --git a/arch/microblaze/kernel/of_platform.c b/arch/microblaze/kernel/of_platform.c index 46a1e105a6bd..ccf6f4257f4b 100644 --- a/arch/microblaze/kernel/of_platform.c +++ b/arch/microblaze/kernel/of_platform.c | |||
| @@ -47,7 +47,7 @@ struct of_device *of_platform_device_create(struct device_node *np, | |||
| 47 | if (!dev) | 47 | if (!dev) |
| 48 | return NULL; | 48 | return NULL; |
| 49 | 49 | ||
| 50 | dev->dma_mask = 0xffffffffUL; | 50 | dev->archdata.dma_mask = 0xffffffffUL; |
| 51 | dev->dev.bus = &of_platform_bus_type; | 51 | dev->dev.bus = &of_platform_bus_type; |
| 52 | 52 | ||
| 53 | /* We do not fill the DMA ops for platform devices by default. | 53 | /* We do not fill the DMA ops for platform devices by default. |
