drivers: fix integer as NULL pointer warnings

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Harvey Harrison
2008-04-28 16:50:04 -07:00
committed by Linus Torvalds
parent a6a3a17b7f
commit a01e035ebb
6 changed files with 6 additions and 6 deletions

View File

@ -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;
}