imxfb: correct location of callbacks in suspend and resume

The probe function passes a pointer to a struct fb_info to
platform_set_drvdata(), so don't interpret the return value of
platform_get_drvdata() as a pointer to struct imxfb_info.

The original imxfb_info *fbi backlight_power was NULL but in imxfb_suspend
it was 4 resulting in an oops as imxfb_suspend calls
imxfb_disable_controller(fbi) which in turn has

if (fbi->backlight_power)
fbi->backlight_power(0);

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Sascha Hauer <kernel@pengutronix.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Uwe Kleine-König and committed by Linus Torvalds 1ec56203 4528fd05

+4 -2
+4 -2
drivers/video/imxfb.c
··· 593 593 */ 594 594 static int imxfb_suspend(struct platform_device *dev, pm_message_t state) 595 595 { 596 - struct imxfb_info *fbi = platform_get_drvdata(dev); 596 + struct fb_info *info = platform_get_drvdata(dev); 597 + struct imxfb_info *fbi = info->par; 597 598 598 599 pr_debug("%s\n", __func__); 599 600 ··· 604 603 605 604 static int imxfb_resume(struct platform_device *dev) 606 605 { 607 - struct imxfb_info *fbi = platform_get_drvdata(dev); 606 + struct fb_info *info = platform_get_drvdata(dev); 607 + struct imxfb_info *fbi = info->par; 608 608 609 609 pr_debug("%s\n", __func__); 610 610