uwb: struct device - replace bus_id with dev_name(), dev_set_name()
[linux-2.6.git] / drivers / uwb / umc-dev.c
index aa44e1c1a102f542a7562bd9dff503019269b871..53207e14cd8f42bf8ebd94ca67661a1c5aae646f 100644 (file)
@@ -31,8 +31,7 @@ struct umc_dev *umc_device_create(struct device *parent, int n)
 
        umc = kzalloc(sizeof(struct umc_dev), GFP_KERNEL);
        if (umc) {
-               snprintf(umc->dev.bus_id, sizeof(umc->dev.bus_id), "%s-%d",
-                        parent->bus_id, n);
+               dev_set_name(&umc->dev, "%s-%d", dev_name(parent), n);
                umc->dev.parent  = parent;
                umc->dev.bus     = &umc_bus_type;
                umc->dev.release = umc_device_release;