diff options
Diffstat (limited to 'drivers/infiniband/core/user_mad.c')
-rw-r--r-- | drivers/infiniband/core/user_mad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c index 249b403b43a4..aca7ff7abedc 100644 --- a/drivers/infiniband/core/user_mad.c +++ b/drivers/infiniband/core/user_mad.c | |||
@@ -1188,7 +1188,7 @@ static int ib_umad_init_port(struct ib_device *device, int port_num, | |||
1188 | if (cdev_add(&port->cdev, base, 1)) | 1188 | if (cdev_add(&port->cdev, base, 1)) |
1189 | goto err_cdev; | 1189 | goto err_cdev; |
1190 | 1190 | ||
1191 | port->dev = device_create(umad_class, device->dma_device, | 1191 | port->dev = device_create(umad_class, device->dev.parent, |
1192 | port->cdev.dev, port, | 1192 | port->cdev.dev, port, |
1193 | "umad%d", port->dev_num); | 1193 | "umad%d", port->dev_num); |
1194 | if (IS_ERR(port->dev)) | 1194 | if (IS_ERR(port->dev)) |
@@ -1207,7 +1207,7 @@ static int ib_umad_init_port(struct ib_device *device, int port_num, | |||
1207 | if (cdev_add(&port->sm_cdev, base, 1)) | 1207 | if (cdev_add(&port->sm_cdev, base, 1)) |
1208 | goto err_sm_cdev; | 1208 | goto err_sm_cdev; |
1209 | 1209 | ||
1210 | port->sm_dev = device_create(umad_class, device->dma_device, | 1210 | port->sm_dev = device_create(umad_class, device->dev.parent, |
1211 | port->sm_cdev.dev, port, | 1211 | port->sm_cdev.dev, port, |
1212 | "issm%d", port->dev_num); | 1212 | "issm%d", port->dev_num); |
1213 | if (IS_ERR(port->sm_dev)) | 1213 | if (IS_ERR(port->sm_dev)) |