/* Look for a drive in the blacklist and the whitelist tables Returns 1 if the drive is found in the table.  */
int ide_in_drive_list(u16 *id, const struct drive_list_entry *table)
/* Look for a drive in the blacklist and the whitelist tables Returns 1 if the drive is found in the table.  */
int ide_in_drive_list(u16 *id, const struct drive_list_entry *table)
{
	for ( ; table->id_model; table++)
		if ((!strcmp(table->id_model, (char *)&id[ATA_ID_PROD])) &&
		    (!table->id_firmware ||
		     strstr((char *)&id[ATA_ID_FW_REV], table->id_firmware)))
			return 1;
	return 0;
}