On Sunday 20 February 2011 20:46:20 Marek Vasut wrote: > > @@ -629,6 +629,9 @@ static void overlay1fb_disable(struct pxafb_layer > > *ofb) > > > > { > > > > uint32_t lccr5 = lcd_readl(ofb->fbi, LCCR5); > > > > + if (!(lcd_readl(ofb->fbi, OVL1C1) & OVLxC1_OEN)) > > + return; > > + > > Maybe you can even avoid reading LCCR5 above ;-) Agreed. Will resend soon. -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html