Skip to content

Commit

Permalink
IB/srp: Switch from dma_device to dev.parent
Browse files Browse the repository at this point in the history
Prepare for removal of ib_device.dma_device.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Bart Van Assche authored and Doug Ledford committed Jan 24, 2017
1 parent 61118ce commit dee2b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/infiniband/ulp/srp/ib_srp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2904,7 +2904,7 @@ static int srp_add_target(struct srp_host *host, struct srp_target_port *target)
sprintf(target->target_name, "SRP.T10:%016llX",
be64_to_cpu(target->id_ext));

if (scsi_add_host(target->scsi_host, host->srp_dev->dev->dma_device))
if (scsi_add_host(target->scsi_host, host->srp_dev->dev->dev.parent))
return -ENODEV;

memcpy(ids.port_id, &target->id_ext, 8);
Expand Down Expand Up @@ -3515,7 +3515,7 @@ static struct srp_host *srp_add_port(struct srp_device *device, u8 port)
host->port = port;

host->dev.class = &srp_class;
host->dev.parent = device->dev->dma_device;
host->dev.parent = device->dev->dev.parent;
dev_set_name(&host->dev, "srp-%s-%d", device->dev->name, port);

if (device_register(&host->dev))
Expand Down

0 comments on commit dee2b82

Please sign in to comment.