diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-02-02 22:44:10 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-03 03:11:22 +0100 |
commit | 1ec562035ba64e724652cb12b8a770b3906e9bf5 (patch) | |
tree | 639849e4d40b124f84fd36d166187a7cee87b06d /drivers/serial/uartlite.c | |
parent | cgroups: fix to return errno in a failure path (diff) | |
download | linux-1ec562035ba64e724652cb12b8a770b3906e9bf5.tar.xz linux-1ec562035ba64e724652cb12b8a770b3906e9bf5.zip |
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions