[PATCH] plat-iop/adma.c: remove unnecessary (void *) casts

H Hartley Sweeten hartleys at visionengravers.com
Fri Jan 29 18:13:38 EST 2010


The (void *) cast is not needed when setting dev.platform_data to the
address of the data. Remove the casts.

Signed-off-by: H Hartley Sweeten <hsweeten at visionengravers.com>

---

diff --git a/arch/arm/plat-iop/adma.c b/arch/arm/plat-iop/adma.c
index 1ff6a37..348fd3a 100644
--- a/arch/arm/plat-iop/adma.c
+++ b/arch/arm/plat-iop/adma.c
@@ -144,7 +144,7 @@ struct platform_device iop3xx_dma_0_channel = {
 	.dev = {
 		.dma_mask = &iop3xx_adma_dmamask,
 		.coherent_dma_mask = DMA_BIT_MASK(64),
-		.platform_data = (void *) &iop3xx_dma_0_data,
+		.platform_data = &iop3xx_dma_0_data,
 	},
 };
 
@@ -156,7 +156,7 @@ struct platform_device iop3xx_dma_1_channel = {
 	.dev = {
 		.dma_mask = &iop3xx_adma_dmamask,
 		.coherent_dma_mask = DMA_BIT_MASK(64),
-		.platform_data = (void *) &iop3xx_dma_1_data,
+		.platform_data = &iop3xx_dma_1_data,
 	},
 };
 
@@ -168,7 +168,7 @@ struct platform_device iop3xx_aau_channel = {
 	.dev = {
 		.dma_mask = &iop3xx_adma_dmamask,
 		.coherent_dma_mask = DMA_BIT_MASK(64),
-		.platform_data = (void *) &iop3xx_aau_data,
+		.platform_data = &iop3xx_aau_data,
 	},
 };
 



More information about the linux-arm-kernel mailing list