Commit dee2b82a authored by Bart Van Assche's avatar Bart Van Assche Committed by Doug Ledford

IB/srp: Switch from dma_device to dev.parent

Prepare for removal of ib_device.dma_device.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Cc: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 61118cec
...@@ -2904,7 +2904,7 @@ static int srp_add_target(struct srp_host *host, struct srp_target_port *target) ...@@ -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", sprintf(target->target_name, "SRP.T10:%016llX",
be64_to_cpu(target->id_ext)); 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; return -ENODEV;
memcpy(ids.port_id, &target->id_ext, 8); memcpy(ids.port_id, &target->id_ext, 8);
...@@ -3515,7 +3515,7 @@ static struct srp_host *srp_add_port(struct srp_device *device, u8 port) ...@@ -3515,7 +3515,7 @@ static struct srp_host *srp_add_port(struct srp_device *device, u8 port)
host->port = port; host->port = port;
host->dev.class = &srp_class; 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); dev_set_name(&host->dev, "srp-%s-%d", device->dev->name, port);
if (device_register(&host->dev)) if (device_register(&host->dev))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment