aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNiklas Cassel <[email protected]>2023-07-31 16:34:18 +0200
committerDamien Le Moal <[email protected]>2023-08-02 17:45:30 +0900
commit541528170a5cb1342c378dfd46b04dfe024dbc7a (patch)
tree3851baa859daff7837141453da457192963c5d23 /include
parenta76f1b637ce92c2b8d5da912826079010b11f138 (diff)
ata,scsi: remove ata_sas_port_init()
ata_sas_port_init() now only contains a single initialization. Move this single initialization to ata_sas_port_alloc(), since: 1) ata_sas_port_alloc() already initializes some of the struct members. 2) ata_sas_port_alloc() is only used by libsas. Suggested-by: John Garry <[email protected]> Signed-off-by: Niklas Cassel <[email protected]> Reviewed-by: John Garry <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/linux/libata.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 7468a330fc77..0980992c54c2 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1241,7 +1241,6 @@ extern int ata_slave_link_init(struct ata_port *ap);
extern struct ata_port *ata_sas_port_alloc(struct ata_host *,
struct ata_port_info *, struct Scsi_Host *);
extern void ata_port_probe(struct ata_port *ap);
-extern int ata_sas_port_init(struct ata_port *);
extern int ata_sas_tport_add(struct device *parent, struct ata_port *ap);
extern void ata_sas_tport_delete(struct ata_port *ap);
extern int ata_sas_slave_configure(struct scsi_device *, struct ata_port *);