Fix typo in Ingenic gpio driver

pull/447/head
Igor Zalatov (from Citadel PC) 2022-09-07 12:36:36 +03:00
parent 641303b346
commit da09812d58
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ int claim_gpio(int gpio) {
return -1;
}
if (gpio_request(gpio, 0) < 0)
if (gpio_request(gpio, 0) > 0)
return -1;
pr_debug("GPIO[%i] Setting direction...\n", gpio);