mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
scsi: libfc: Replace ->rport_create callback with function call
The ->rport_create callback only ever had a single implementation, so we can as well call it directly and drop the callback. Signed-off-by: Hannes Reinecke <hare@suse.com> Acked-by: Johannes Thumshirn <jth@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
558b88fe6d
commit
2580064b5e
5 changed files with 11 additions and 21 deletions
|
@ -609,13 +609,6 @@ struct libfc_function_template {
|
|||
void (*lport_set_port_id)(struct fc_lport *, u32 port_id,
|
||||
struct fc_frame *);
|
||||
|
||||
/*
|
||||
* Create a remote port with a given port ID
|
||||
*
|
||||
* STATUS: OPTIONAL
|
||||
*/
|
||||
struct fc_rport_priv *(*rport_create)(struct fc_lport *, u32);
|
||||
|
||||
/*
|
||||
* Initiates the RP state machine. It is called from the LP module.
|
||||
* This function will issue the following commands to the N_Port
|
||||
|
@ -1024,6 +1017,7 @@ int fc_rport_init(struct fc_lport *);
|
|||
void fc_rport_terminate_io(struct fc_rport *);
|
||||
struct fc_rport_priv *fc_rport_lookup(const struct fc_lport *lport,
|
||||
u32 port_id);
|
||||
struct fc_rport_priv *fc_rport_create(struct fc_lport *, u32);
|
||||
void fc_rport_destroy(struct kref *kref);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue