Commit 3d52910e authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

zorro: Use zorro_match_device() helper in zorro_bus_match()

Make zorro_bus_match() use the existing zorro_match_device() helper,
instead of open-coding the same operation.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20200112164949.20196-4-geert@linux-m68k.org
parent aeee094d
......@@ -133,12 +133,7 @@ static int zorro_bus_match(struct device *dev, struct device_driver *drv)
if (!ids)
return 0;
while (ids->id) {
if (ids->id == ZORRO_WILDCARD || ids->id == z->id)
return 1;
ids++;
}
return 0;
return !!zorro_match_device(ids, z);
}
static int zorro_uevent(struct device *dev, struct kobj_uevent_env *env)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment