diff options
author | Jingoo Han <jg1.han@samsung.com> | 2012-12-17 19:00:55 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-17 20:15:16 -0500 |
commit | 3c48d1f2539cf3a42adc5fe4f77950eeb28bef3b (patch) | |
tree | 640837411f88c0ce6e7fe80d7c7e8bb6f8c19008 /drivers/video/backlight/s6e63m0.c | |
parent | 3fd00432df3c4ae3c54a10360634f6d3a4a787c4 (diff) |
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 <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/backlight/s6e63m0.c')
-rw-r--r-- | drivers/video/backlight/s6e63m0.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
757 | lcd->spi = spi; | 757 | lcd->spi = spi; |
758 | lcd->dev = &spi->dev; | 758 | lcd->dev = &spi->dev; |
759 | 759 | ||
760 | lcd->lcd_pd = (struct lcd_platform_data *)spi->dev.platform_data; | 760 | lcd->lcd_pd = spi->dev.platform_data; |
761 | if (!lcd->lcd_pd) { | 761 | if (!lcd->lcd_pd) { |
762 | dev_err(&spi->dev, "platform data is NULL.\n"); | 762 | dev_err(&spi->dev, "platform data is NULL.\n"); |
763 | return -EFAULT; | 763 | return -EFAULT; |