aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/srp/ib_srp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.c')
-rw-r--r--drivers/infiniband/ulp/srp/ib_srp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c
index 3c7fa972a38c..cee46266f434 100644
--- a/drivers/infiniband/ulp/srp/ib_srp.c
+++ b/drivers/infiniband/ulp/srp/ib_srp.c
@@ -2933,7 +2933,7 @@ static int srp_add_target(struct srp_host *host, struct srp_target_port *target)
2933 sprintf(target->target_name, "SRP.T10:%016llX", 2933 sprintf(target->target_name, "SRP.T10:%016llX",
2934 be64_to_cpu(target->id_ext)); 2934 be64_to_cpu(target->id_ext));
2935 2935
2936 if (scsi_add_host(target->scsi_host, host->srp_dev->dev->dma_device)) 2936 if (scsi_add_host(target->scsi_host, host->srp_dev->dev->dev.parent))
2937 return -ENODEV; 2937 return -ENODEV;
2938 2938
2939 memcpy(ids.port_id, &target->id_ext, 8); 2939 memcpy(ids.port_id, &target->id_ext, 8);
@@ -3546,7 +3546,7 @@ static struct srp_host *srp_add_port(struct srp_device *device, u8 port)
3546 host->port = port; 3546 host->port = port;
3547 3547
3548 host->dev.class = &srp_class; 3548 host->dev.class = &srp_class;
3549 host->dev.parent = device->dev->dma_device; 3549 host->dev.parent = device->dev->dev.parent;
3550 dev_set_name(&host->dev, "srp-%s-%d", device->dev->name, port); 3550 dev_set_name(&host->dev, "srp-%s-%d", device->dev->name, port);
3551 3551
3552 if (device_register(&host->dev)) 3552 if (device_register(&host->dev))