Files
u-boot/drivers
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
..
2020-08-03 22:19:54 -04:00
2020-09-30 11:55:23 -04:00
2020-07-27 14:16:29 +05:30
2020-09-01 14:47:43 +02:00
2020-05-18 21:19:18 -04:00
2020-09-30 08:54:38 +08:00
2020-09-25 11:27:21 +08:00
2020-08-03 22:19:54 -04:00
2020-08-24 14:11:31 -04:00