clocksource: sh_mtu2: 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)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:22:51 +0000 (09:22 +0900)
commitad157d06b034f84668eb62adbd2022d2cd12789b
treef6df20c249dfa06ecca0c311ea2720b4f07ee97b
parentb12aeb13feb36d9ea66104a3accf176dee951f12
clocksource: sh_mtu2: 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>
Tested-by: Wolfram Sang <wsa@sang-engineering.com>
(cherry picked from commit 276bee05d8b72e98d530b55161e0a2131da99f58)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/clocksource/sh_mtu2.c