mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
fix a bug in the GPIO code
SVN-Revision: 10759
This commit is contained in:
parent
9d41b1731d
commit
bb5cd9c240
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user