of/platform: Fix microblaze build failure
PATCH 1/1 of/platform: Fix microblaze build failure
Commit bf5db2f (microblaze: Use generic device.h) removes the microblaze specific pdev_archdata and dma_mask.
At the same time, commit 591c1ee (of: configure the platform device dma parameters) initializes the just removed field. This causes all microblaze builds to fail.
Drop the unnecessary initialization.
--- drivers/of/platform.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/of/platform.c +0 -4
@@ -166,10 +166,6 @@ static void of_dma_configure(struct platform_device *pdev)int ret;struct device *dev = &pdev->dev; -#if defined(CONFIG_MICROBLAZE ) - pdev->archdata.dma_mask =0xffffffffUL ; -#endif -/* * Set default dma-mask to 32 bit. Drivers are expected to setup * the correct supported dma_mask.
Signature · 6 lines
1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 21 lines · Guenter Roeck
Commit bf5db2f (microblaze: Use generic
device.h) removes the microblaze specificpdev_archdataanddma_mask.At the same time, commit 591c1ee (of: configure the platform device dma parameters) initializes the just removed field. This causes all microblaze builds to fail.
Drop the unnecessary initialization.
Cc Michal Simek <[email protected]>Signed-off-by Guenter Roeck <[email protected]>--- drivers/of/platform.c | 4 ---- 1 file changed, 4 deletions(-)drivers/of/platform.c +0
-0
drivers/of/platform.c static void of_dma_configure(struct platform_device *pdev) · line 171
Quoted 10 lines
drivers/of/platform.c +0
-4@@ -166,10 +166,6 @@ static void of_dma_configure(struct platform_device *pdev)int ret;struct device *dev = &pdev->dev; -#if defined(CONFIG_MICROBLAZE ) - pdev->archdata.dma_mask =0xffffffffUL ; -#endif -/* * Set default dma-mask to 32 bit. Drivers are expected to setup * the correct supported dma_mask.
Thanks,
Michal
Signature · 5 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/ Maintainer of Linux kernel - Xilinx Zynq ARM architecture Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform