ARM: OMAP2: Remove unnecessary KERN_* in omap_phy_internal.c
Subsystems (3)
PATCH 1/1 ARM: OMAP2: Remove unnecessary KERN_* in omap_phy_internal.c
This patch remove unnecessary KERN_INFO and KERN_ERR from omap_phy_internal.c.
Signed-off-by Masanari Iida <[email protected]>
--- arch/arm/mach-omap2/omap_phy_internal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-omap2/omap_phy_internal.c +3 -3
@@ -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 );
Signature · 1 line
2.1.1.273.g97b8860
arch/arm/mach-omap2/omap_phy_internal.c
Quoted 11 lines · Masanari Iida
This patch remove unnecessary
KERN_INFOandKERN_ERRfromomap_phy_internal.c.Signed-off-by Masanari Iida <[email protected]>--- arch/arm/mach-omap2/omap_phy_internal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)arch/arm/mach-omap2/omap_phy_internal.c +0
-0
With the cleanups, maybe add a
#define pr_fmt(fmt) "%s: " fmt, __func__
at the start to make the log info a little more relevant?
Quoted 32 lines
arch/arm/mach-omap2/omap_phy_internal.c +3
-3@@ -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 );Signature · 6 lines
2.1.1.273.g97b8860 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Regards, Nishanth Menon
This patch remove unnecessary KERN_INFO and KERN_ERR from omap_phy_internal.c. Add pr_fmt.
Signed-off-by Masanari Iida <[email protected]>
--- arch/arm/mach-omap2/omap_phy_internal.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
arch/arm/mach-omap2/omap_phy_internal.c +5 -3
@@ -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 );
Signature · 1 line
2.1.1.273.g97b8860
Tony Lindgren
maintainerQuoted 2 lines · Masanari Iida
This patch remove unnecessary
KERN_INFOandKERN_ERRfromomap_phy_internal.c. Addpr_fmt.
Applying into omap-for-v3.19/fixes-not-urgent thanks.
Tony