]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
dm: gpio: fix typo when checking get_open_drain function hook
authorLothar Waßmann <LW@KARO-electronics.de>
Wed, 8 Mar 2017 14:16:30 +0000 (15:16 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 13 Mar 2017 15:36:09 +0000 (16:36 +0100)
dm_gpio_get_open_drain() checks ops->set_open_drain rather than
ops->get_open_drain before calling the latter function.
Fix this obvious typo.

drivers/gpio/gpio-uclass.c

index 4559739d619c637d79495e349290b7ae93646de9..d2992c675950e0843ff29a1c23af127d23da46f0 100644 (file)
@@ -376,7 +376,7 @@ int dm_gpio_get_open_drain(struct gpio_desc *desc)
        if (ret)
                return ret;
 
-       if (ops->set_open_drain)
+       if (ops->get_open_drain)
                return ops->get_open_drain(desc->dev, desc->offset);
        else
                return -ENOSYS;