iicmux: fix a sign error in comparison

Because pcell_t is unsigned both sides of the comparison were treated as
such.
Because of that error iicmux created all possible sub-buses even if only
a subset was defined in the device tree.

MFC after:	1 week
This commit is contained in:
Andriy Gapon 2020-08-18 12:14:01 +00:00
parent 3a3f1e9dfa
commit eda20682cb

View File

@ -283,7 +283,7 @@ iicmux_attach_children(struct iicmux_softc *sc)
}
sc->childdevs[idx] = device_add_child(sc->dev, "iicbus", -1);
sc->childnodes[idx] = child;
if (sc->maxbus < idx)
if (sc->maxbus < (int)idx)
sc->maxbus = idx;
}