aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_scsi.c
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2010-02-17 05:18:56 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-02-17 18:46:30 -0500
commit615f59e0daaf56e43dcaaf3ea228967d9bc21584 (patch)
tree846366936a5077153b8f07b3125e868d7f6bce4e /drivers/s390/scsi/zfcp_scsi.c
parent5bdecd2248d4af6f3b311b4d8ca7f3f5f83a7191 (diff)
[SCSI] zfcp: Rename sysfs_device attribute to dev in zfcp_unit and zfcp_port
Kernel code uses dev as short name for the struct device. Rename the sysfs_device in zfcp_unit and zfcp_port to match this convention. Reviewed-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_scsi.c')
-rw-r--r--drivers/s390/scsi/zfcp_scsi.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c
index 1fce8a49fc60..0d580b2fc4da 100644
--- a/drivers/s390/scsi/zfcp_scsi.c
+++ b/drivers/s390/scsi/zfcp_scsi.c
@@ -3,7 +3,7 @@
3 * 3 *
4 * Interface to Linux SCSI midlayer. 4 * Interface to Linux SCSI midlayer.
5 * 5 *
6 * Copyright IBM Corporation 2002, 2009 6 * Copyright IBM Corporation 2002, 2010
7 */ 7 */
8 8
9#define KMSG_COMPONENT "zfcp" 9#define KMSG_COMPONENT "zfcp"
@@ -44,7 +44,7 @@ static void zfcp_scsi_slave_destroy(struct scsi_device *sdpnt)
44{ 44{
45 struct zfcp_unit *unit = (struct zfcp_unit *) sdpnt->hostdata; 45 struct zfcp_unit *unit = (struct zfcp_unit *) sdpnt->hostdata;
46 unit->device = NULL; 46 unit->device = NULL;
47 put_device(&unit->sysfs_device); 47 put_device(&unit->dev);
48} 48}
49 49
50static int zfcp_scsi_slave_configure(struct scsi_device *sdp) 50static int zfcp_scsi_slave_configure(struct scsi_device *sdp)
@@ -511,7 +511,7 @@ static void zfcp_scsi_terminate_rport_io(struct fc_rport *rport)
511 511
512 if (port) { 512 if (port) {
513 zfcp_erp_port_reopen(port, 0, "sctrpi1", NULL); 513 zfcp_erp_port_reopen(port, 0, "sctrpi1", NULL);
514 put_device(&port->sysfs_device); 514 put_device(&port->dev);
515 } 515 }
516} 516}
517 517
@@ -553,23 +553,23 @@ static void zfcp_scsi_rport_block(struct zfcp_port *port)
553 553
554void zfcp_scsi_schedule_rport_register(struct zfcp_port *port) 554void zfcp_scsi_schedule_rport_register(struct zfcp_port *port)
555{ 555{
556 get_device(&port->sysfs_device); 556 get_device(&port->dev);
557 port->rport_task = RPORT_ADD; 557 port->rport_task = RPORT_ADD;
558 558
559 if (!queue_work(port->adapter->work_queue, &port->rport_work)) 559 if (!queue_work(port->adapter->work_queue, &port->rport_work))
560 put_device(&port->sysfs_device); 560 put_device(&port->dev);
561} 561}
562 562
563void zfcp_scsi_schedule_rport_block(struct zfcp_port *port) 563void zfcp_scsi_schedule_rport_block(struct zfcp_port *port)
564{ 564{
565 get_device(&port->sysfs_device); 565 get_device(&port->dev);
566 port->rport_task = RPORT_DEL; 566 port->rport_task = RPORT_DEL;
567 567
568 if (port->rport && queue_work(port->adapter->work_queue, 568 if (port->rport && queue_work(port->adapter->work_queue,
569 &port->rport_work)) 569 &port->rport_work))
570 return; 570 return;
571 571
572 put_device(&port->sysfs_device); 572 put_device(&port->dev);
573} 573}
574 574
575void zfcp_scsi_schedule_rports_block(struct zfcp_adapter *adapter) 575void zfcp_scsi_schedule_rports_block(struct zfcp_adapter *adapter)
@@ -598,7 +598,7 @@ void zfcp_scsi_rport_work(struct work_struct *work)
598 } 598 }
599 } 599 }
600 600
601 put_device(&port->sysfs_device); 601 put_device(&port->dev);
602} 602}
603 603
604 604
@@ -616,7 +616,7 @@ void zfcp_scsi_scan(struct work_struct *work)
616 scsilun_to_int((struct scsi_lun *) 616 scsilun_to_int((struct scsi_lun *)
617 &unit->fcp_lun), 0); 617 &unit->fcp_lun), 0);
618 618
619 put_device(&unit->sysfs_device); 619 put_device(&unit->dev);
620} 620}
621 621
622struct fc_function_template zfcp_transport_functions = { 622struct fc_function_template zfcp_transport_functions = {