From: Jingoo Han Date: Fri, 9 Nov 2012 03:04:47 +0000 (+1100) Subject: drivers/video/backlight/s6e63m0.c: remove unnecessary cast of void pointer X-Git-Tag: next-20121112~5^2~101 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=760eaa0d746db673179017529c877f06d189e72c;p=karo-tx-linux.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 --- diff --git a/drivers/video/backlight/s6e63m0.c b/drivers/video/backlight/s6e63m0.c index 6437ae474cf2..1f435e25c910 100644 --- a/drivers/video/backlight/s6e63m0.c +++ b/drivers/video/backlight/s6e63m0.c @@ -757,7 +757,7 @@ static int __devinit 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;