diff options
| -rw-r--r-- | exynos4412_gpios_data.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/exynos4412_gpios_data.c b/exynos4412_gpios_data.c index 28c567d..d953752 100644 --- a/exynos4412_gpios_data.c +++ b/exynos4412_gpios_data.c @@ -432,12 +432,18 @@ off_t get_gpio_register_offset(int debug, char *gpio_bank_name, gpio_bank_data = get_gpio_bank_data(gpio_bank_name); if (gpio_bank_data == NULL) { + printf("%s: could not find gpio bank data for %s\n", + __func__, gpio_bank_name); + errno = EINVAL; return -1; } gpio_register_data = get_gpio_register_data(register_name); if (gpio_register_data == NULL) { + printf("%s: could not find gpio register data for %s\n", + __func__, register_name); + errno = EINVAL; return -1; } |
