/* scsi_sysfs_add_host - add scsi host to subsystem @shost: scsi host struct to add to subsystem  */
int scsi_sysfs_add_host(struct Scsi_Host *shost)
/* scsi_sysfs_add_host - add scsi host to subsystem @shost: scsi host struct to add to subsystem  */
int scsi_sysfs_add_host(struct Scsi_Host *shost)
{
	int error, i;
	if (shost->hostt->shost_attrs) {
		for (i = 0; shost->hostt->shost_attrs[i]; i++) {
			error = device_create_file(&shost->shost_dev,
					shost->hostt->shost_attrs[i]);
			if (error)
				return error;
		}
	}
	transport_register_device(&shost->shost_gendev);
	transport_configure_device(&shost->shost_gendev);
	return 0;
}