mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
clocksource/drivers/h8300_timer8: Fix compilation error with dev_warn
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>
This commit is contained in:
parent
4633f4cac8
commit
8c09b7d6ba
@ -98,7 +98,7 @@ static void timer8_set_next(struct timer8_priv *p, unsigned long delta)
|
|||||||
|
|
||||||
raw_spin_lock_irqsave(&p->lock, flags);
|
raw_spin_lock_irqsave(&p->lock, flags);
|
||||||
if (delta >= 0x10000)
|
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);
|
now = timer8_get_counter(p);
|
||||||
p->tcora = delta;
|
p->tcora = delta;
|
||||||
ctrl_outb(ctrl_inb(p->mapbase + _8TCR) | 0x40, p->mapbase + _8TCR);
|
ctrl_outb(ctrl_inb(p->mapbase + _8TCR) | 0x40, p->mapbase + _8TCR);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user