From: Jingoo Han Date: Tue, 18 Dec 2012 00:00:55 +0000 (-0800) Subject: drivers/video/backlight/s6e63m0.c: remove unnecessary cast of void pointer X-Git-Tag: submit/tizen_common/20140905.094502~3833^2~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c48d1f2539cf3a42adc5fe4f77950eeb28bef3b;p=sdk%2Femulator%2Femulator-kernel.git drivers/video/backlight/s6e63m0.c: remove unnecessary cast of void pointer Remove unnecessary cast of void pointer for platform data in probe function. Signed-off-by: Jingoo Han Cc: Richard Purdie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c index 484e10dd1a8e..3e1c1135f6df 100644 --- a/drivers/video/backlight/s6e63m0.c +++ b/drivers/video/backlight/s6e63m0.c @@ -757,7 +757,7 @@ static int s6e63m0_probe(struct spi_device *spi) lcd->spi = spi; lcd->dev = &spi->dev; - lcd->lcd_pd = (struct lcd_platform_data *)spi->dev.platform_data; + lcd->lcd_pd = spi->dev.platform_data; if (!lcd->lcd_pd) { dev_err(&spi->dev, "platform data is NULL.\n"); return -EFAULT;