提交 ef4a6777 编写于 作者: H H Hartley Sweeten 提交者: Nicolas Pitre

mach-orion5x/common.c: remove unnecessary (void *) casts

The (void *) cast is not needed when setting dev.platform_data to the
address of the data. Remove the casts.
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: NNicolas Pitre <nico@marvell.com>
上级 fc76be43
...@@ -488,7 +488,7 @@ static struct platform_device orion5x_xor0_channel = { ...@@ -488,7 +488,7 @@ static struct platform_device orion5x_xor0_channel = {
.dev = { .dev = {
.dma_mask = &orion5x_xor_dmamask, .dma_mask = &orion5x_xor_dmamask,
.coherent_dma_mask = DMA_BIT_MASK(64), .coherent_dma_mask = DMA_BIT_MASK(64),
.platform_data = (void *)&orion5x_xor0_data, .platform_data = &orion5x_xor0_data,
}, },
}; };
...@@ -514,7 +514,7 @@ static struct platform_device orion5x_xor1_channel = { ...@@ -514,7 +514,7 @@ static struct platform_device orion5x_xor1_channel = {
.dev = { .dev = {
.dma_mask = &orion5x_xor_dmamask, .dma_mask = &orion5x_xor_dmamask,
.coherent_dma_mask = DMA_BIT_MASK(64), .coherent_dma_mask = DMA_BIT_MASK(64),
.platform_data = (void *)&orion5x_xor1_data, .platform_data = &orion5x_xor1_data,
}, },
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册