Skip to content
Snippets Groups Projects
Commit bb5cd9c2 authored by Gabor Juhos's avatar Gabor Juhos
Browse files

fix a bug in the GPIO code

SVN-Revision: 10759
parent 9d41b173
No related branches found
No related tags found
No related merge requests found
......@@ -70,10 +70,10 @@ static u32 gpio_conf2;
static inline int gpio_is_invalid(unsigned gpio)
{
if ((gpio > ADM5120_GPIO_MAX) ||
(adm5120_gpio_map[gpio].flags & GPIO_FLAG_VALID) == 0);
return 0;
(adm5120_gpio_map[gpio].flags & GPIO_FLAG_VALID) == 0)
return 1;
return 1;
return 0;
}
static inline int gpio_is_used(unsigned gpio)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment