Checks for (irq < 0) and (ilsel < 0) didn't make sense since they were
unsigned. Made them signed.
Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
int __init x3proto_gpio_setup(void)
{
- unsigned int ilsel;
+ int ilsel;
int ret, i;
ilsel = ilsel_enable(ILSEL_KEY);
for (i = 0; i < NR_BASEBOARD_GPIOS; i++) {
unsigned long flags;
- unsigned int irq = create_irq();
+ int irq = create_irq();
if (unlikely(irq < 0)) {
ret = -EINVAL;