Commit 3093e78e authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt

clocksource: sh_cmt: use remove_irq() and remove clockevent workaround

Update the sh_cmt driver to make use of recent irq and clockevent changes:
 - use remove_irq() together with setup_irq()
 - remove mult workaround since WARN_ON() now has been moved
Signed-off-by: default avatarMagnus Damm <damm@igel.co.jp>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent c4361bb6
...@@ -465,7 +465,6 @@ static void sh_cmt_register_clockevent(struct sh_cmt_priv *p, ...@@ -465,7 +465,6 @@ static void sh_cmt_register_clockevent(struct sh_cmt_priv *p,
ced->set_mode = sh_cmt_clock_event_mode; ced->set_mode = sh_cmt_clock_event_mode;
pr_info("sh_cmt: %s used for clock events\n", ced->name); pr_info("sh_cmt: %s used for clock events\n", ced->name);
ced->mult = 1; /* work around misplaced WARN_ON() in clockevents.c */
clockevents_register_device(ced); clockevents_register_device(ced);
} }
...@@ -557,7 +556,7 @@ static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev) ...@@ -557,7 +556,7 @@ static int sh_cmt_setup(struct sh_cmt_priv *p, struct platform_device *pdev)
cfg->clockevent_rating, cfg->clockevent_rating,
cfg->clocksource_rating); cfg->clocksource_rating);
err2: err2:
free_irq(irq, p); remove_irq(irq, &p->irqaction);
err1: err1:
iounmap(p->mapbase); iounmap(p->mapbase);
err0: err0:
......
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