提交 eaa79a6c 编写于 作者: C Christoph Hellwig 提交者: Martin K. Petersen

scsi: smartpqi: remove the smp_handler stub

The SAS transport class will do the right thing and not register the BSG
node if now smp_handler method is present.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 9a664f49
...@@ -329,14 +329,6 @@ static int pqi_sas_phy_speed(struct sas_phy *phy, ...@@ -329,14 +329,6 @@ static int pqi_sas_phy_speed(struct sas_phy *phy,
return -EINVAL; return -EINVAL;
} }
/* SMP = Serial Management Protocol */
static int pqi_sas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy,
struct request *req)
{
return -EINVAL;
}
struct sas_function_template pqi_sas_transport_functions = { struct sas_function_template pqi_sas_transport_functions = {
.get_linkerrors = pqi_sas_get_linkerrors, .get_linkerrors = pqi_sas_get_linkerrors,
.get_enclosure_identifier = pqi_sas_get_enclosure_identifier, .get_enclosure_identifier = pqi_sas_get_enclosure_identifier,
...@@ -346,5 +338,4 @@ struct sas_function_template pqi_sas_transport_functions = { ...@@ -346,5 +338,4 @@ struct sas_function_template pqi_sas_transport_functions = {
.phy_setup = pqi_sas_phy_setup, .phy_setup = pqi_sas_phy_setup,
.phy_release = pqi_sas_phy_release, .phy_release = pqi_sas_phy_release,
.set_phy_speed = pqi_sas_phy_speed, .set_phy_speed = pqi_sas_phy_speed,
.smp_handler = pqi_sas_smp_handler,
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册