infiniband: struct device - replace bus_id with dev_name(), dev_set_name()
[linux-2.6.git] / drivers / infiniband / core / ucm.c
index e603736682bfc6e52fbc6f4802375bd329aa7850..51bd9669cb1f7697c0be4e1b4b0c38dc4ee05499 100644 (file)
@@ -1266,8 +1266,7 @@ static void ib_ucm_add_one(struct ib_device *device)
        ucm_dev->dev.parent = device->dma_device;
        ucm_dev->dev.devt = ucm_dev->cdev.dev;
        ucm_dev->dev.release = ib_ucm_release_dev;
-       snprintf(ucm_dev->dev.bus_id, BUS_ID_SIZE, "ucm%d",
-                ucm_dev->devnum);
+       dev_set_name(&ucm_dev->dev, "ucm%d", ucm_dev->devnum);
        if (device_register(&ucm_dev->dev))
                goto err_cdev;