Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christoph Hellwig and committed by
Martin K. Petersen
eaa79a6c 9a664f49

-9
-9
drivers/scsi/smartpqi/smartpqi_sas_transport.c
··· 329 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 332 struct sas_function_template pqi_sas_transport_functions = { 341 333 .get_linkerrors = pqi_sas_get_linkerrors, 342 334 .get_enclosure_identifier = pqi_sas_get_enclosure_identifier, ··· 338 346 .phy_setup = pqi_sas_phy_setup, 339 347 .phy_release = pqi_sas_phy_release, 340 348 .set_phy_speed = pqi_sas_phy_speed, 341 - .smp_handler = pqi_sas_smp_handler, 342 349 };