]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP: LCD: parameter order typo
authorAndrzej Zaborowski <balrog@zabor.org>
Fri, 15 Feb 2008 23:15:07 +0000 (15:15 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 15 Feb 2008 23:15:07 +0000 (15:15 -0800)
Value and register offset got swapped in a dispc write. I noticed no
malfunction connected with this, only a strange write to *_REVISION
(offset zero).

Signed-off-by: Andrzej Zaborowski <balrog@zabor.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/video/omap/dispc.c
drivers/video/omap/lcd_mipid.c

index 5c643f09fba2f8bd87b632b6ffa305dfc613a8ac..4c055a24554ed6065cc252b164730dfdf9770434 100644 (file)
@@ -1405,7 +1405,7 @@ static int omap_dispc_init(struct omapfb_device *fbdev, int ext_mode,
        dispc_write_reg(DISPC_CONFIG, l);
 
        l = dispc_read_reg(DISPC_IRQSTATUS);
-       dispc_write_reg(l, DISPC_IRQSTATUS);
+       dispc_write_reg(DISPC_IRQSTATUS, l);
 
        /* Enable those that we handle always */
        omap_dispc_enable_irqs(DISPC_IRQ_FRAMEMASK);
index ef071a600b08233d7d0e2a52cf6bfd0b2f493804..3af8b2fd9714311e45f1a7e99a41a4957a842c19 100644 (file)
@@ -453,7 +453,7 @@ static int panel_enabled(struct mipid_device *md)
        disp_status = __be32_to_cpu(disp_status);
        enabled = (disp_status & (1 << 17)) && (disp_status & (1 << 10));
        dev_dbg(&md->spi->dev,
-               "LCD panel %s enabled by bootloader (status 0x%04x)\n",
+               "LCD panel %senabled by bootloader (status 0x%04x)\n",
                enabled ? "" : "not ", disp_status);
        return enabled;
 }