* [PATCH 2/3] sh_mobile_meram: Safely disable MERAM operation when not initialized
@ 2011-05-24 6:58 Damian Hobson-Garcia
2011-05-25 2:44 ` Paul Mundt
0 siblings, 1 reply; 2+ messages in thread
From: Damian Hobson-Garcia @ 2011-05-24 6:58 UTC (permalink / raw)
To: linux-sh
If the MERAM platform data is defined, but the MERAM has not been
properly initaliazed we need to safely fall back to non-MERAM operation.
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
---
drivers/video/sh_mobile_lcdcfb.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c
index 1c652da..edf0d32 100644
--- a/drivers/video/sh_mobile_lcdcfb.c
+++ b/drivers/video/sh_mobile_lcdcfb.c
@@ -610,7 +610,8 @@ static int sh_mobile_lcdc_start(struct sh_mobile_lcdc_priv *priv)
pitch = ch->info->fix.line_length;
/* test if we can enable meram */
- if (ch->cfg.meram_cfg && priv->meram_dev) {
+ if (ch->cfg.meram_cfg && priv->meram_dev &&
+ priv->meram_dev->ops) {
struct sh_mobile_meram_cfg *cfg;
struct sh_mobile_meram_info *mdev;
unsigned long icb_addr_y, icb_addr_c;
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/3] sh_mobile_meram: Safely disable MERAM operation when not initialized
2011-05-24 6:58 [PATCH 2/3] sh_mobile_meram: Safely disable MERAM operation when not initialized Damian Hobson-Garcia
@ 2011-05-25 2:44 ` Paul Mundt
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2011-05-25 2:44 UTC (permalink / raw)
To: linux-sh
On Tue, May 24, 2011 at 04:01:21PM +0900, Damian Hobson-Garcia wrote:
> If the MERAM platform data is defined, but the MERAM has not been
> properly initaliazed we need to safely fall back to non-MERAM operation.
>
> Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Applied, thanks. In the future please also Cc linux-fbdev, as ultimately
this all ends up going via the fbdev tree anyways.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-25 2:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-24 6:58 [PATCH 2/3] sh_mobile_meram: Safely disable MERAM operation when not initialized Damian Hobson-Garcia
2011-05-25 2:44 ` Paul Mundt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.