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:
committed by
Linus Torvalds
parent
a6a3a17b7f
commit
a01e035ebb
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user