[PATCH/v2] ARM: OMAP2: Remove unnecessary KERN_* in omap_phy_internal.c

2014-10-07 Thread Masanari Iida
This patch remove unnecessary KERN_INFO and KERN_ERR from omap_phy_internal.c.
Add pr_fmt. 

Signed-off-by: Masanari Iida standby2...@gmail.com
---
 arch/arm/mach-omap2/omap_phy_internal.c | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-omap2/omap_phy_internal.c 
b/arch/arm/mach-omap2/omap_phy_internal.c
index 50640b3..1a19fa0 100644
--- a/arch/arm/mach-omap2/omap_phy_internal.c
+++ b/arch/arm/mach-omap2/omap_phy_internal.c
@@ -21,6 +21,8 @@
   *
   */
 
+#define pr_fmt(fmt) KBUILD_MODNAME :  fmt
+
 #include linux/types.h
 #include linux/delay.h
 #include linux/clk.h
@@ -97,13 +99,13 @@ void am35x_musb_phy_power(u8 on)
 
omap_ctrl_writel(devconf2, AM35XX_CONTROL_DEVCONF2);
 
-   pr_info(KERN_INFO Waiting for PHY clock good...\n);
+   pr_info(Waiting for PHY clock good...\n);
while (!(omap_ctrl_readl(AM35XX_CONTROL_DEVCONF2)
 CONF2_PHYCLKGD)) {
cpu_relax();
 
if (time_after(jiffies, timeout)) {
-   pr_err(KERN_ERR musb PHY clock good timed 
out\n);
+   pr_err(musb PHY clock good timed out\n);
break;
}
}
@@ -145,7 +147,7 @@ void am35x_set_mode(u8 musb_mode)
devconf2 |= CONF2_NO_OVERRIDE;
break;
default:
-   pr_info(KERN_INFO Unsupported mode %u\n, musb_mode);
+   pr_info(Unsupported mode %u\n, musb_mode);
}
 
omap_ctrl_writel(devconf2, AM35XX_CONTROL_DEVCONF2);
-- 
2.1.1.273.g97b8860

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] ARM: OMAP2: Remove unnecessary KERN_* in omap_phy_internal.c

2014-10-06 Thread Masanari Iida
This patch remove unnecessary KERN_INFO and KERN_ERR from omap_phy_internal.c.

Signed-off-by: Masanari Iida standby2...@gmail.com
---
 arch/arm/mach-omap2/omap_phy_internal.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-omap2/omap_phy_internal.c 
b/arch/arm/mach-omap2/omap_phy_internal.c
index 50640b3..f4d942a 100644
--- a/arch/arm/mach-omap2/omap_phy_internal.c
+++ b/arch/arm/mach-omap2/omap_phy_internal.c
@@ -97,13 +97,13 @@ void am35x_musb_phy_power(u8 on)
 
omap_ctrl_writel(devconf2, AM35XX_CONTROL_DEVCONF2);
 
-   pr_info(KERN_INFO Waiting for PHY clock good...\n);
+   pr_info(Waiting for PHY clock good...\n);
while (!(omap_ctrl_readl(AM35XX_CONTROL_DEVCONF2)
 CONF2_PHYCLKGD)) {
cpu_relax();
 
if (time_after(jiffies, timeout)) {
-   pr_err(KERN_ERR musb PHY clock good timed 
out\n);
+   pr_err(musb PHY clock good timed out\n);
break;
}
}
@@ -145,7 +145,7 @@ void am35x_set_mode(u8 musb_mode)
devconf2 |= CONF2_NO_OVERRIDE;
break;
default:
-   pr_info(KERN_INFO Unsupported mode %u\n, musb_mode);
+   pr_info(Unsupported mode %u\n, musb_mode);
}
 
omap_ctrl_writel(devconf2, AM35XX_CONTROL_DEVCONF2);
-- 
2.1.1.273.g97b8860

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] fbdev: omap2: Fix format string mismatch in display-sysfs.c

2014-04-28 Thread Masanari Iida
Fix two format string mismatch in display-sysfs.c

Signed-off-by: Masanari Iida standby2...@gmail.com
---
 drivers/video/fbdev/omap2/dss/display-sysfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/video/fbdev/omap2/dss/display-sysfs.c 
b/drivers/video/fbdev/omap2/dss/display-sysfs.c
index 5a2095a..5928bc9 100644
--- a/drivers/video/fbdev/omap2/dss/display-sysfs.c
+++ b/drivers/video/fbdev/omap2/dss/display-sysfs.c
@@ -184,7 +184,7 @@ static ssize_t display_rotate_show(struct device *dev,
if (!dssdev-driver-get_rotate)
return -ENOENT;
rotate = dssdev-driver-get_rotate(dssdev);
-   return snprintf(buf, PAGE_SIZE, %u\n, rotate);
+   return snprintf(buf, PAGE_SIZE, %d\n, rotate);
 }
 
 static ssize_t display_rotate_store(struct device *dev,
@@ -215,7 +215,7 @@ static ssize_t display_mirror_show(struct device *dev,
if (!dssdev-driver-get_mirror)
return -ENOENT;
mirror = dssdev-driver-get_mirror(dssdev);
-   return snprintf(buf, PAGE_SIZE, %u\n, mirror);
+   return snprintf(buf, PAGE_SIZE, %d\n, mirror);
 }
 
 static ssize_t display_mirror_store(struct device *dev,
-- 
2.0.0.rc1

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] [trivial] mach-omap1: Fix typo in lcd_dma.c

2012-02-06 Thread Masanari Iida
Correct spelling resulotion to resolution in
arch/arm/mach-omap1/lcd_dma.c

Signed-off-by: Masanari Iida standby2...@gmail.com
---
 arch/arm/mach-omap1/lcd_dma.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap1/lcd_dma.c b/arch/arm/mach-omap1/lcd_dma.c
index 4538093..4c5ce7d 100644
--- a/arch/arm/mach-omap1/lcd_dma.c
+++ b/arch/arm/mach-omap1/lcd_dma.c
@@ -117,7 +117,7 @@ EXPORT_SYMBOL(omap_set_lcd_dma_b1_mirror);
 void omap_set_lcd_dma_b1_vxres(unsigned long vxres)
 {
if (cpu_is_omap15xx()) {
-   printk(KERN_ERR DMA virtual resulotion is not supported 
+   printk(KERN_ERR DMA virtual resolution is not supported 
in 1510 mode\n);
BUG();
}
-- 
1.7.6.5

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html