X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fchar%2Fcs5535_gpio.c;h=c0a4a0bb509e77397875b023bc4ad4f1324946bf;hb=fbe0825752dc34b505777fd59cde4a6ce832eb16;hp=c2d23cae95155d5c78fefa8995c672c5b30643a7;hpb=980110c5da56cb56d3356f5a5251fdc920f83ba6;p=linux-2.6 diff --git a/drivers/char/cs5535_gpio.c b/drivers/char/cs5535_gpio.c index c2d23cae95..c0a4a0bb50 100644 --- a/drivers/char/cs5535_gpio.c +++ b/drivers/char/cs5535_gpio.c @@ -215,7 +215,7 @@ static int __init cs5535_gpio_init(void) else mask = 0x0b003c66; - if (request_region(gpio_base, CS5535_GPIO_SIZE, NAME) == 0) { + if (!request_region(gpio_base, CS5535_GPIO_SIZE, NAME)) { printk(KERN_ERR NAME ": can't allocate I/O for GPIO\n"); return -ENODEV; }