clocksource: sh_cmt: Use request_irq() instead of setup_irq()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 17 Feb 2014 10:27:49 +0000 (11:27 +0100)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:14:20 +0000 (11:14 +0100)
commitbba5059615babb49fcc676c0c7c79a2325d85b62
tree360417a4bdc948d2a4fcb952bc463ce0555074ea
parent18f1533105e6dc9cc3809990ad3c50f8e24fadf3
clocksource: sh_cmt: Use request_irq() instead of setup_irq()

The driver claims it needs to register an interrupt handler too early
for request_irq(). This might have been true in the past, but the only
meaningful difference between request_irq() and setup_irq() today is an
additional kzalloc() call in request_irq(). As the driver calls
kmalloc() itself we know that the slab allocator is available, we can
thus switch to request_irq().

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
(cherry picked from commit dc2eadece70089430f12e4ed6bb1a4421cf3d6f4)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/clocksource/sh_cmt.c