diff options
Diffstat (limited to 'drivers/gpio/adi_gpio2.c')
-rw-r--r-- | drivers/gpio/adi_gpio2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/adi_gpio2.c b/drivers/gpio/adi_gpio2.c index 4db08a344ad..1012f2d8eb8 100644 --- a/drivers/gpio/adi_gpio2.c +++ b/drivers/gpio/adi_gpio2.c @@ -138,7 +138,7 @@ int peripheral_request(unsigned short per, const char *label) return 0; if (!(per & P_DEFINED)) - return -ENODEV; + return -EINVAL; BUG_ON(ident >= MAX_RESOURCES); |