video: stop sh_mobile_lcdcfb only if started
authorMagnus Damm <damm@igel.co.jp>
Wed, 20 May 2009 14:34:43 +0000 (14:34 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 22 May 2009 04:19:15 +0000 (13:19 +0900)
commit8e9bb19ef97d6594e735bee64b6d72103e350854
treececfe0966ae47c1af9db67f1704e7b9933de37cf
parent37869fa2da1a952ed736858f8b9e45c0b9131ae9
video: stop sh_mobile_lcdcfb only if started

This patch fixes the LCDC driver to avoid calling the
function sh_mobile_lcdc_start_stop(priv, 0) unless the
same function has been called before to start the LCDC
hardware.

Triggered when sh_mobile_lcdcfb.c failed to probe() due to
missing MSTP clocks.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/video/sh_mobile_lcdcfb.c