Commit bd7413ae authored by Robert Jarzmik's avatar Robert Jarzmik Committed by Arnd Bergmann

ARM: pxa: pxa_cplds: signedness bug in probe

"base_irq" needs to be signed for the error handling to work.  Also we
can remove the initialization because we re-assign it later.

Fixes: aa8d6b73 ('ARM: pxa: pxa_cplds: add lubbock and mainstone IO')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarRobert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 632a686b
...@@ -107,7 +107,7 @@ static int cplds_probe(struct platform_device *pdev) ...@@ -107,7 +107,7 @@ static int cplds_probe(struct platform_device *pdev)
struct resource *res; struct resource *res;
struct cplds *fpga; struct cplds *fpga;
int ret; int ret;
unsigned int base_irq = 0; int base_irq;
unsigned long irqflags = 0; unsigned long irqflags = 0;
fpga = devm_kzalloc(&pdev->dev, sizeof(*fpga), GFP_KERNEL); fpga = devm_kzalloc(&pdev->dev, sizeof(*fpga), GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment