diff options
author | Hubert Feurstein <h.feurstein@gmail.com> | 2012-01-09 17:23:57 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-02-13 11:16:58 -0800 |
commit | c1a4af09cec0d39604a99ab58e59276c69c4179a (patch) | |
tree | 59b08ec767318809e9df8ee395d0963eb71c51cf /drivers/video/atmel_lcdfb.c | |
parent | 85f2f3e05e8e0deec4fc8b751324f91acb276d21 (diff) | |
download | linux-stable-c1a4af09cec0d39604a99ab58e59276c69c4179a.tar.gz linux-stable-c1a4af09cec0d39604a99ab58e59276c69c4179a.tar.bz2 linux-stable-c1a4af09cec0d39604a99ab58e59276c69c4179a.zip |
atmel_lcdfb: fix usage of CONTRAST_CTR in suspend/resume
commit 9f1065032ceb7e86c7c9f16bb86518857e88a172 upstream.
An error was existing in the saving of CONTRAST_CTR register
across suspend/resume.
Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/video/atmel_lcdfb.c')
-rw-r--r-- | drivers/video/atmel_lcdfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 63409c122ae8..e919c701827e 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -1089,7 +1089,7 @@ static int atmel_lcdfb_suspend(struct platform_device *pdev, pm_message_t mesg) */ lcdc_writel(sinfo, ATMEL_LCDC_IDR, ~0UL); - sinfo->saved_lcdcon = lcdc_readl(sinfo, ATMEL_LCDC_CONTRAST_VAL); + sinfo->saved_lcdcon = lcdc_readl(sinfo, ATMEL_LCDC_CONTRAST_CTR); lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_CTR, 0); if (sinfo->atmel_lcdfb_power_control) sinfo->atmel_lcdfb_power_control(0); |