mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 22:53:09 +02:00
[adm5120] fix a bug in the GPIO code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10759 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a5c761a3a5
commit
22152f87cd
@ -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