/* This is obviously inefficient and may be revised in the future.  */
struct mon_bus* mon_bus_lookup(unsigned int num)
/* This is obviously inefficient and may be revised in the future.  */
struct mon_bus* mon_bus_lookup(unsigned int num)
{
	struct list_head *p;
	struct mon_bus *mbus;
	if (num == 0) {
		return &mon_bus0;
	}
	list_for_each (p, &mon_buses) {
		mbus = list_entry(p, struct mon_bus, bus_link);
		if (mbus->u_bus->busnum == num) {
			return mbus;
		}
	}
	return NULL;
}