|
@@ -368,10 +368,8 @@ static void maple_attach_driver(struct maple_device *mdev)
|
|
/* Do this silently - as not a real device */
|
|
/* Do this silently - as not a real device */
|
|
function = 0;
|
|
function = 0;
|
|
mdev->driver = &maple_unsupported_device;
|
|
mdev->driver = &maple_unsupported_device;
|
|
- sprintf(mdev->dev.bus_id, "%d:0.port", mdev->port);
|
|
|
|
-
|
|
|
|
|
|
+ dev_set_name(&mdev->dev, "%d:0.port", mdev->port);
|
|
} else {
|
|
} else {
|
|
-
|
|
|
|
matched =
|
|
matched =
|
|
bus_for_each_drv(&maple_bus_type, NULL, mdev,
|
|
bus_for_each_drv(&maple_bus_type, NULL, mdev,
|
|
maple_check_matching_driver);
|
|
maple_check_matching_driver);
|
|
@@ -381,8 +379,9 @@ static void maple_attach_driver(struct maple_device *mdev)
|
|
dev_info(&mdev->dev, "no driver found\n");
|
|
dev_info(&mdev->dev, "no driver found\n");
|
|
mdev->driver = &maple_unsupported_device;
|
|
mdev->driver = &maple_unsupported_device;
|
|
}
|
|
}
|
|
- sprintf(mdev->dev.bus_id, "%d:0%d.%lX", mdev->port,
|
|
|
|
- mdev->unit, function);
|
|
|
|
|
|
+
|
|
|
|
+ dev_set_name(&mdev->dev, "%d:0%d.%lX", mdev->port,
|
|
|
|
+ mdev->unit, function);
|
|
}
|
|
}
|
|
|
|
|
|
mdev->function = function;
|
|
mdev->function = function;
|
|
@@ -789,7 +788,7 @@ struct bus_type maple_bus_type = {
|
|
EXPORT_SYMBOL_GPL(maple_bus_type);
|
|
EXPORT_SYMBOL_GPL(maple_bus_type);
|
|
|
|
|
|
static struct device maple_bus = {
|
|
static struct device maple_bus = {
|
|
- .bus_id = "maple",
|
|
|
|
|
|
+ .init_name = "maple",
|
|
.release = maple_bus_release,
|
|
.release = maple_bus_release,
|
|
};
|
|
};
|
|
|
|
|