/* The workaround is only used for device discovery.  */
static int lba_device_present(u8 bus, u8 dfn, struct lba_device *d)
/* The workaround is only used for device discovery.  */
static int lba_device_present(u8 bus, u8 dfn, struct lba_device *d)
{
	u8 first_bus = d->hba.hba_bus->secondary;
	u8 last_sub_bus = d->hba.hba_bus->subordinate;
	if ((bus < first_bus) ||
	    (bus > last_sub_bus) ||
	    ((bus - first_bus) >= LBA_MAX_NUM_BUSES)) {
		return 0;
	}
	return 1;
}