u-boot-brain/drivers/pinctrl/broadcom
Ovidiu Panait 0db912de15 pinctrl: bcm283x: Store the return value of dev_read_u32_default to int
Currently, the return value of dev_read_u32_default is stored in an u32,
causing the subsequent "if (function < 0)" to always be false:

u32 function;
...
function = dev_read_u32_default(config, "brcm,function", -1);
if (function < 0) {
        debug("Failed reading function for pinconfig %s (%d)\n",
                      config->name, function);
        return -EINVAL;
}

Make "function" variable an int to fix this.

Cc: Matthias Brugger <mbrugger@suse.com>
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
2020-10-02 17:32:28 +02:00
..
Kconfig pinctrl: bcm6838: add pinctrl support 2018-09-22 20:49:59 +02:00
Makefile pinctrl: bcm6838: add pinctrl support 2018-09-22 20:49:59 +02:00
pinctrl-bcm283x.c pinctrl: bcm283x: Store the return value of dev_read_u32_default to int 2020-10-02 17:32:28 +02:00
pinctrl-bcm6838.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00