mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-01 14:14:56 +00:00
rk_pinctrl: fix error check
The parse_bias method returns a signed int, with a value of -1 when the device tree reports nothing of the bias configuration. Convert the local 'bias' from unsigned to signed to properly check this condition. PR: 229721 Reviewed by: mhorne MFC after: 3 days
This commit is contained in:
parent
fb1028dcd4
commit
97ab935d56
|
@ -1141,9 +1141,9 @@ rk_pinctrl_configure_pin(struct rk_pinctrl_softc *sc, uint32_t *pindata)
|
|||
{
|
||||
phandle_t pin_conf;
|
||||
struct syscon *syscon;
|
||||
uint32_t bank, subbank, pin, function, bias;
|
||||
uint32_t bank, subbank, pin, function;
|
||||
uint32_t bit, mask, reg, drive;
|
||||
int i, rv;
|
||||
int i, rv, bias;
|
||||
|
||||
bank = pindata[0];
|
||||
pin = pindata[1];
|
||||
|
|
Loading…
Reference in a new issue