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:
John F. Carr 2024-06-14 13:37:06 -03:00 committed by Mitchell Horne
parent fb1028dcd4
commit 97ab935d56

View file

@ -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];