summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/serial.c
diff options
context:
space:
mode:
authorSergio Aguirre <saaguirre@ti.com>2010-03-09 13:22:14 -0600
committerSergio Aguirre <saaguirre@ti.com>2010-03-15 16:34:12 -0500
commit10c805eb4f89d44fe4e457d727b59af15c4a4a36 (patch)
tree258412d93ccfd63d9ac2dcc78a10225a8948c520 /arch/arm/mach-omap2/serial.c
parente88d556dc5f0ef437e3538277a1dd33e5038be77 (diff)
downloadtalos-op-linux-10c805eb4f89d44fe4e457d727b59af15c4a4a36.tar.gz
talos-op-linux-10c805eb4f89d44fe4e457d727b59af15c4a4a36.zip
OMAP3: serial: Use dev_* macros instead of printk
As we have a struct device populated at the time we are printing the errors, using dev_* macros makes more sense, as could give a better idea where the error/warning came from. Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/serial.c')
-rw-r--r--arch/arm/mach-omap2/serial.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index ef91fc0390b4..a55e6aeb648e 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -550,7 +550,7 @@ static ssize_t sleep_timeout_store(struct device *dev,
unsigned int value;
if (sscanf(buf, "%u", &value) != 1) {
- printk(KERN_ERR "sleep_timeout_store: Invalid value\n");
+ dev_err(dev, "sleep_timeout_store: Invalid value\n");
return -EINVAL;
}
@@ -666,8 +666,8 @@ void __init omap_serial_early_init(void)
/* Don't map zero-based physical address */
if (p->mapbase == 0) {
- printk(KERN_WARNING "omap serial: No physical address"
- " for uart#%d, so skipping early_init...\n", i);
+ dev_warn(dev, "no physical address for uart#%d,"
+ " so skipping early_init...\n", i);
continue;
}
/*
@@ -676,21 +676,21 @@ void __init omap_serial_early_init(void)
*/
p->membase = ioremap(p->mapbase, SZ_8K);
if (!p->membase) {
- printk(KERN_ERR "ioremap failed for uart%i\n", i + 1);
+ dev_err(dev, "ioremap failed for uart%i\n", i + 1);
continue;
}
sprintf(name, "uart%d_ick", i + 1);
uart->ick = clk_get(NULL, name);
if (IS_ERR(uart->ick)) {
- printk(KERN_ERR "Could not get uart%d_ick\n", i + 1);
+ dev_err(dev, "Could not get uart%d_ick\n", i + 1);
uart->ick = NULL;
}
sprintf(name, "uart%d_fck", i+1);
uart->fck = clk_get(NULL, name);
if (IS_ERR(uart->fck)) {
- printk(KERN_ERR "Could not get uart%d_fck\n", i + 1);
+ dev_err(dev, "Could not get uart%d_fck\n", i + 1);
uart->fck = NULL;
}
OpenPOWER on IntegriCloud