Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (222 commits) [SCSI] zfcp: Remove flag ZFCP_STATUS_FSFREQ_TMFUNCNOTSUPP [SCSI] zfcp: Activate fc4s attributes for zfcp in FC transport class [SCSI] zfcp: Block scsi_eh thread for rport state BLOCKED [SCSI] zfcp: Update FSF error reporting [SCSI] zfcp: Improve ELS ADISC handling [SCSI] zfcp: Simplify handling of ct and els requests [SCSI] zfcp: Remove ZFCP_DID_MASK [SCSI] zfcp: Move WKA port to zfcp FC code [SCSI] zfcp: Use common code definitions for FC CT structs [SCSI] zfcp: Use common code definitions for FC ELS structs [SCSI] zfcp: Update FCP protocol related code [SCSI] zfcp: Dont fail SCSI commands when transitioning to blocked fc_rport [SCSI] zfcp: Assign scheduled work to driver queue [SCSI] zfcp: Remove STATUS_COMMON_REMOVE flag as it is not required anymore [SCSI] zfcp: Implement module unloading [SCSI] zfcp: Merge trace code for fsf requests in one function [SCSI] zfcp: Access ports and units with container_of in sysfs code [SCSI] zfcp: Remove suspend callback [SCSI] zfcp: Remove global config_mutex [SCSI] zfcp: Replace local reference counting with common kref ...
This commit is contained in:
@@ -180,14 +180,20 @@ void scsi_remove_host(struct Scsi_Host *shost)
|
||||
EXPORT_SYMBOL(scsi_remove_host);
|
||||
|
||||
/**
|
||||
* scsi_add_host - add a scsi host
|
||||
* scsi_add_host_with_dma - add a scsi host with dma device
|
||||
* @shost: scsi host pointer to add
|
||||
* @dev: a struct device of type scsi class
|
||||
* @dma_dev: dma device for the host
|
||||
*
|
||||
* Note: You rarely need to worry about this unless you're in a
|
||||
* virtualised host environments, so use the simpler scsi_add_host()
|
||||
* function instead.
|
||||
*
|
||||
* Return value:
|
||||
* 0 on success / != 0 for error
|
||||
**/
|
||||
int scsi_add_host(struct Scsi_Host *shost, struct device *dev)
|
||||
int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev,
|
||||
struct device *dma_dev)
|
||||
{
|
||||
struct scsi_host_template *sht = shost->hostt;
|
||||
int error = -EINVAL;
|
||||
@@ -207,6 +213,7 @@ int scsi_add_host(struct Scsi_Host *shost, struct device *dev)
|
||||
|
||||
if (!shost->shost_gendev.parent)
|
||||
shost->shost_gendev.parent = dev ? dev : &platform_bus;
|
||||
shost->dma_dev = dma_dev;
|
||||
|
||||
error = device_add(&shost->shost_gendev);
|
||||
if (error)
|
||||
@@ -262,7 +269,7 @@ int scsi_add_host(struct Scsi_Host *shost, struct device *dev)
|
||||
fail:
|
||||
return error;
|
||||
}
|
||||
EXPORT_SYMBOL(scsi_add_host);
|
||||
EXPORT_SYMBOL(scsi_add_host_with_dma);
|
||||
|
||||
static void scsi_host_dev_release(struct device *dev)
|
||||
{
|
||||
|
Reference in New Issue
Block a user