aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/cs5535_gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/cs5535_gpio.c')
-rw-r--r--drivers/char/cs5535_gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/cs5535_gpio.c b/drivers/char/cs5535_gpio.c
index c2d23cae9515..c0a4a0bb509e 100644
--- a/drivers/char/cs5535_gpio.c
+++ b/drivers/char/cs5535_gpio.c
@@ -215,7 +215,7 @@ static int __init cs5535_gpio_init(void)
215 else 215 else
216 mask = 0x0b003c66; 216 mask = 0x0b003c66;
217 217
218 if (request_region(gpio_base, CS5535_GPIO_SIZE, NAME) == 0) { 218 if (!request_region(gpio_base, CS5535_GPIO_SIZE, NAME)) {
219 printk(KERN_ERR NAME ": can't allocate I/O for GPIO\n"); 219 printk(KERN_ERR NAME ": can't allocate I/O for GPIO\n");
220 return -ENODEV; 220 return -ENODEV;
221 } 221 }