]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mockup: modify the return value check for devm_irq_sim_init()
authorBartosz Golaszewski <brgl@bgdev.pl>
Mon, 27 Nov 2017 10:48:52 +0000 (11:48 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 2 Dec 2017 21:42:30 +0000 (22:42 +0100)
commit5d51ab8cee7430f488932d7c77055ea4bf4df5f7
treee6304b12cce1f6fd4ce0683f4725a6e009391837
parenta1d20343d8d65d3ba908a9611ce4abe5504417f4
gpio: mockup: modify the return value check for devm_irq_sim_init()

As discussed with Marc Zyngier: irq_sim_init() and its devres variant
should return the base of the allocated interrupt range on success
rather than 0. This will be modified later - first, change the way
users handle the return value of these routines.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mockup.c