OSDN Git Service

clocksource/drivers/timer-cs5535: Request irq with non-NULL dev_id
authorafzal mohammed <afzal.mohd.ma@gmail.com>
Thu, 12 Mar 2020 06:48:17 +0000 (12:18 +0530)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 12 Mar 2020 18:23:06 +0000 (19:23 +0100)
commit470cf1c28d2f601ea666a96d676c10b09b2321ab
treed21075b34c65acdb5642661c6adc9495a7d8ae3e
parentcc2550b421aa30e3da67e5a7f6d14f3ecd3527b3
clocksource/drivers/timer-cs5535: Request irq with non-NULL dev_id

Recently all usages of setup_irq() was replaced by request_irq().
request_irq() does a few sanity checks that were not done in
setup_irq(), if they fail irq registration will fail. One of the check
is to ensure that non-NULL dev_id is passed in the case of shared irq.

Fix it by passing non-NULL dev_id while registering the shared irq.

Fixes: cc2550b421aa ("clocksource: Replace setup_irq() by request_irq()")
Signed-off-by: afzal mohammed <afzal.mohd.ma@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200312064817.19000-1-afzal.mohd.ma@gmail.com
drivers/clocksource/timer-cs5535.c