diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_gpio.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/cmd_gpio.c b/common/cmd_gpio.c index 778aa5f098..aff044518f 100644 --- a/common/cmd_gpio.c +++ b/common/cmd_gpio.c @@ -11,9 +11,10 @@ #include <dm.h> #include <asm/gpio.h> -#ifndef name_to_gpio -#define name_to_gpio(name) simple_strtoul(name, NULL, 10) -#endif +int __weak name_to_gpio(const char *name) +{ + return simple_strtoul(name, NULL, 10); +} enum gpio_cmd { GPIO_INPUT, |