Commit 64d6882d authored by Hartley Sweeten's avatar Hartley Sweeten Committed by Russell King

ARM: 5877/1: ep93xx: use pr_fmt in core.c

Use pr_fmt to prefix kernel output with the module name.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: default avatarRyan Mallon <ryan@bluewatersys.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent f3f1882c
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
* your option) any later version. * your option) any later version.
*/ */
#define pr_fmt(fmt) "ep93xx " KBUILD_MODNAME ": " fmt
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
...@@ -318,8 +320,7 @@ static int ep93xx_gpio_irq_type(unsigned int irq, unsigned int type) ...@@ -318,8 +320,7 @@ static int ep93xx_gpio_irq_type(unsigned int irq, unsigned int type)
desc->handle_irq = handle_edge_irq; desc->handle_irq = handle_edge_irq;
break; break;
default: default:
pr_err("ep93xx: failed to set irq type %d for gpio %d\n", pr_err("failed to set irq type %d for gpio %d\n", type, gpio);
type, gpio);
return -EINVAL; return -EINVAL;
} }
...@@ -572,9 +573,9 @@ void __init ep93xx_register_i2c(struct i2c_gpio_platform_data *data, ...@@ -572,9 +573,9 @@ void __init ep93xx_register_i2c(struct i2c_gpio_platform_data *data,
* CMOS driver. * CMOS driver.
*/ */
if (data->sda_is_open_drain && data->sda_pin != EP93XX_GPIO_LINE_EEDAT) if (data->sda_is_open_drain && data->sda_pin != EP93XX_GPIO_LINE_EEDAT)
pr_warning("ep93xx: sda != EEDAT, open drain has no effect\n"); pr_warning("sda != EEDAT, open drain has no effect\n");
if (data->scl_is_open_drain && data->scl_pin != EP93XX_GPIO_LINE_EECLK) if (data->scl_is_open_drain && data->scl_pin != EP93XX_GPIO_LINE_EECLK)
pr_warning("ep93xx: scl != EECLK, open drain has no effect\n"); pr_warning("scl != EECLK, open drain has no effect\n");
__raw_writel((data->sda_is_open_drain << 1) | __raw_writel((data->sda_is_open_drain << 1) |
(data->scl_is_open_drain << 0), (data->scl_is_open_drain << 0),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment