clocksource/drivers/h8300_timer8: Fix compilation error with dev_warn
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 9 Nov 2015 08:02:38 +0000 (09:02 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 15 Dec 2015 08:42:04 +0000 (09:42 +0100)
The dev_warn is using the platform driver which was removed in the previous
patch.

Let's replace dev_warn by pr_warn.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/h8300_timer8.c

index f0680eb4f93d0a1caed1bbba99855c8d797c700a..35b0e8f98cafa33f3409df339895bada94cf434a 100644 (file)
@@ -98,7 +98,7 @@ static void timer8_set_next(struct timer8_priv *p, unsigned long delta)
 
        raw_spin_lock_irqsave(&p->lock, flags);
        if (delta >= 0x10000)
-               dev_warn(&p->pdev->dev, "delta out of range\n");
+               pr_warn("delta out of range\n");
        now = timer8_get_counter(p);
        p->tcora = delta;
        ctrl_outb(ctrl_inb(p->mapbase + _8TCR) | 0x40, p->mapbase + _8TCR);