mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 14:41:26 +01:00
x86: ich6_gpio: Output return value of syscon_get_by_driver_data()
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>
This commit is contained in:
parent
8a1a7595cf
commit
8142340ee3
@ -114,9 +114,11 @@ static int ich6_gpio_probe(struct udevice *dev)
|
|||||||
struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev);
|
struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev);
|
||||||
struct ich6_bank_priv *bank = dev_get_priv(dev);
|
struct ich6_bank_priv *bank = dev_get_priv(dev);
|
||||||
struct udevice *pinctrl;
|
struct udevice *pinctrl;
|
||||||
|
int ret;
|
||||||
|
|
||||||
/* Set up pin control if available */
|
/* 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->gpio_count = GPIO_PER_BANK;
|
||||||
uc_priv->bank_name = plat->bank_name;
|
uc_priv->bank_name = plat->bank_name;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user