]> git.sur5r.net Git - u-boot/commitdiff
x86: ich6_gpio: Output return value of syscon_get_by_driver_data()
authorBin Meng <bmeng.cn@gmail.com>
Wed, 8 Jun 2016 12:07:32 +0000 (05:07 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 12 Jun 2016 04:19:35 +0000 (12:19 +0800)
The call to syscon_get_by_driver_data() does not save its return value.
Print it out to aid debugging.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/gpio/intel_ich6_gpio.c

index b7e379ab97984cbcffd1c4e9bb87350510f69151..2d66d040f00cc0a50547e0a7fcc0f0145665d1ba 100644 (file)
@@ -114,9 +114,11 @@ static int ich6_gpio_probe(struct udevice *dev)
        struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev);
        struct ich6_bank_priv *bank = dev_get_priv(dev);
        struct udevice *pinctrl;
+       int ret;
 
        /* Set up pin control if available */
-       syscon_get_by_driver_data(X86_SYSCON_PINCONF, &pinctrl);
+       ret = syscon_get_by_driver_data(X86_SYSCON_PINCONF, &pinctrl);
+       debug("%s, pinctrl=%p, ret=%d\n", __func__, pinctrl, ret);
 
        uc_priv->gpio_count = GPIO_PER_BANK;
        uc_priv->bank_name = plat->bank_name;