diff options
| author | Christoph Hellwig <hch@lst.de> | 2017-08-25 11:37:40 -0400 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-29 21:51:44 -0400 |
| commit | eaa79a6cd733e1f978613a5fcf5f7c1cdb38eb2a (patch) | |
| tree | 3a484d48dd9eddb437378d575d0b837afcb72e00 | |
| parent | 9a664f4924907300246413ba3ccd9fadb0934c29 (diff) | |
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: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
| -rw-r--r-- | drivers/scsi/smartpqi/smartpqi_sas_transport.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/scsi/smartpqi/smartpqi_sas_transport.c b/drivers/scsi/smartpqi/smartpqi_sas_transport.c index 0d89d3728b43..b209a35e482e 100644 --- a/drivers/scsi/smartpqi/smartpqi_sas_transport.c +++ b/drivers/scsi/smartpqi/smartpqi_sas_transport.c | |||
| @@ -329,14 +329,6 @@ static int pqi_sas_phy_speed(struct sas_phy *phy, | |||
| 329 | return -EINVAL; | 329 | return -EINVAL; |
| 330 | } | 330 | } |
| 331 | 331 | ||
| 332 | /* SMP = Serial Management Protocol */ | ||
| 333 | |||
| 334 | static int pqi_sas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, | ||
| 335 | struct request *req) | ||
| 336 | { | ||
| 337 | return -EINVAL; | ||
| 338 | } | ||
| 339 | |||
| 340 | struct sas_function_template pqi_sas_transport_functions = { | 332 | struct sas_function_template pqi_sas_transport_functions = { |
| 341 | .get_linkerrors = pqi_sas_get_linkerrors, | 333 | .get_linkerrors = pqi_sas_get_linkerrors, |
| 342 | .get_enclosure_identifier = pqi_sas_get_enclosure_identifier, | 334 | .get_enclosure_identifier = pqi_sas_get_enclosure_identifier, |
| @@ -346,5 +338,4 @@ struct sas_function_template pqi_sas_transport_functions = { | |||
| 346 | .phy_setup = pqi_sas_phy_setup, | 338 | .phy_setup = pqi_sas_phy_setup, |
| 347 | .phy_release = pqi_sas_phy_release, | 339 | .phy_release = pqi_sas_phy_release, |
| 348 | .set_phy_speed = pqi_sas_phy_speed, | 340 | .set_phy_speed = pqi_sas_phy_speed, |
| 349 | .smp_handler = pqi_sas_smp_handler, | ||
| 350 | }; | 341 | }; |
