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

scsi: hpsa: 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>
Acked-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

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

-9
-9
drivers/scsi/hpsa.c
··· 9497 9497 return -EINVAL; 9498 9498 } 9499 9499 9500 - /* SMP = Serial Management Protocol */ 9501 - static int 9502 - hpsa_sas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, 9503 - struct request *req) 9504 - { 9505 - return -EINVAL; 9506 - } 9507 - 9508 9500 static struct sas_function_template hpsa_sas_transport_functions = { 9509 9501 .get_linkerrors = hpsa_sas_get_linkerrors, 9510 9502 .get_enclosure_identifier = hpsa_sas_get_enclosure_identifier, ··· 9506 9514 .phy_setup = hpsa_sas_phy_setup, 9507 9515 .phy_release = hpsa_sas_phy_release, 9508 9516 .set_phy_speed = hpsa_sas_phy_speed, 9509 - .smp_handler = hpsa_sas_smp_handler, 9510 9517 }; 9511 9518 9512 9519 /*