drivers/gpio: Act relevantly if GPIO_INT is an unsupported flag
Using right error code, and no need to populate callback related API functions. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
04d9d57a63
commit
ea5d01b41c
4 changed files with 12 additions and 36 deletions
|
@ -45,7 +45,7 @@ static int gpio_mcux_configure(struct device *dev,
|
|||
|
||||
/* Check if GPIO port supports interrupts */
|
||||
if ((flags & GPIO_INT) && ((config->flags & GPIO_INT) == 0)) {
|
||||
return -EINVAL;
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
/* The flags contain options that require touching registers in the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue