ARM: davinci: Use standard logging styles
Convert printks to pr_<level> and pr_warning to pr_warn. Other miscellanea: o Coalesce formats o Realign arguments o Use %s, __func__ instead of embedded function names o Add pr_fmt to mityomapl138 and mux Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
This commit is contained in:
@ -342,8 +342,6 @@ void __init davinci_timer_init(void)
|
||||
struct davinci_soc_info *soc_info = &davinci_soc_info;
|
||||
unsigned int clockevent_id;
|
||||
unsigned int clocksource_id;
|
||||
static char err[] __initdata = KERN_ERR
|
||||
"%s: can't register clocksource!\n";
|
||||
int i;
|
||||
|
||||
clockevent_id = soc_info->timer_info->clockevent_id;
|
||||
@ -364,12 +362,12 @@ void __init davinci_timer_init(void)
|
||||
|
||||
/* Only bottom timers can use compare regs */
|
||||
if (IS_TIMER_TOP(clockevent_id))
|
||||
pr_warning("davinci_timer_init: Invalid use"
|
||||
" of system timers. Results unpredictable.\n");
|
||||
pr_warn("%s: Invalid use of system timers. Results unpredictable.\n",
|
||||
__func__);
|
||||
else if ((dtip[event_timer].cmp_off == 0)
|
||||
|| (dtip[event_timer].cmp_irq == 0))
|
||||
pr_warning("davinci_timer_init: Invalid timer instance"
|
||||
" setup. Results unpredictable.\n");
|
||||
pr_warn("%s: Invalid timer instance setup. Results unpredictable.\n",
|
||||
__func__);
|
||||
else {
|
||||
timers[TID_CLOCKEVENT].opts |= TIMER_OPTS_USE_COMPARE;
|
||||
clockevent_davinci.features = CLOCK_EVT_FEAT_ONESHOT;
|
||||
@ -389,7 +387,8 @@ void __init davinci_timer_init(void)
|
||||
clocksource_davinci.name = id_to_name[clocksource_id];
|
||||
if (clocksource_register_hz(&clocksource_davinci,
|
||||
davinci_clock_tick_rate))
|
||||
printk(err, clocksource_davinci.name);
|
||||
pr_err("%s: can't register clocksource!\n",
|
||||
clocksource_davinci.name);
|
||||
|
||||
sched_clock_register(davinci_read_sched_clock, 32,
|
||||
davinci_clock_tick_rate);
|
||||
|
Reference in New Issue
Block a user