summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-msm-v2.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-11-07 10:50:19 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-04 11:05:12 -0800
commit5153c120fa6c368c4e9a28d9a5864c91fbfb15c3 (patch)
tree9862894a66b9d06c1dbc35c4307a6d6cc84f7e1a /drivers/gpio/gpio-msm-v2.c
parentcf89c76189b3dd3476958975171bc548c603cc26 (diff)
gpio: mvebu: make mvchip->irqbase signed for error handling
commit d535922691fc026479fcc03e78ac3d931a54e75a upstream. There is a bug in mvebu_gpio_probe() where we do: mvchip->irqbase = irq_alloc_descs(-1, 0, ngpios, -1); if (mvchip->irqbase < 0) { The problem is that mvchip->irqbase is unsigned so the error handling doesn't work. I have changed it to be a regular int. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpio/gpio-msm-v2.c')
0 files changed, 0 insertions, 0 deletions