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:
parent
3a3f1e9dfa
commit
eda20682cb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user