[PATCH] OMAP: LCD: parameter order typo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
diff --git a/drivers/video/omap/dispc.c b/drivers/video/omap/dispc.c
index 4183f47..9d75c31 100644
--- a/drivers/video/omap/dispc.c
+++ b/drivers/video/omap/dispc.c
@@ -1410,7 +1410,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);
diff --git a/drivers/video/omap/lcd_mipid.c b/drivers/video/omap/lcd_mipid.c
index e9623dc..a14c4f2 100644
--- a/drivers/video/omap/lcd_mipid.c
+++ b/drivers/video/omap/lcd_mipid.c
@@ -452,7 +452,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;
 }

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux