[PATCH] mach-iop13xx/setup.c: remove unnecessary (void *) casts

H Hartley Sweeten hartleys at visionengravers.com
Fri Jan 29 17:39:01 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/mach-iop13xx/setup.c b/arch/arm/mach-iop13xx/setup.c
index 5c147fb..56d047c 100644
--- a/arch/arm/mach-iop13xx/setup.c
+++ b/arch/arm/mach-iop13xx/setup.c
@@ -332,7 +332,7 @@ static struct platform_device iop13xx_adma_0_channel = {
 	.dev = {
 		.dma_mask = &iop13xx_adma_dmamask,
 		.coherent_dma_mask = DMA_BIT_MASK(64),
-		.platform_data = (void *) &iop13xx_adma_0_data,
+		.platform_data = &iop13xx_adma_0_data,
 	},
 };
 
@@ -344,7 +344,7 @@ static struct platform_device iop13xx_adma_1_channel = {
 	.dev = {
 		.dma_mask = &iop13xx_adma_dmamask,
 		.coherent_dma_mask = DMA_BIT_MASK(64),
-		.platform_data = (void *) &iop13xx_adma_1_data,
+		.platform_data = &iop13xx_adma_1_data,
 	},
 };
 
@@ -356,7 +356,7 @@ static struct platform_device iop13xx_adma_2_channel = {
 	.dev = {
 		.dma_mask = &iop13xx_adma_dmamask,
 		.coherent_dma_mask = DMA_BIT_MASK(64),
-		.platform_data = (void *) &iop13xx_adma_2_data,
+		.platform_data = &iop13xx_adma_2_data,
 	},
 };
 



More information about the linux-arm-kernel mailing list