From: Dan Carpenter Date: Thu, 7 Nov 2013 07:50:19 +0000 (+0300) Subject: gpio: mvebu: make mvchip->irqbase signed for error handling X-Git-Tag: v3.13-rc2~10^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d535922691fc026479fcc03e78ac3d931a54e75a;p=pandora-kernel.git gpio: mvebu: make mvchip->irqbase signed for error handling 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. Cc: stable@vger.kernel.org Signed-off-by: Dan Carpenter Signed-off-by: Linus Walleij --- Reading git-diff-tree failed