mirror of https://gitee.com/openkylin/linux.git
[POWERPC] Make vio_bus_type static
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
c868078ed8
commit
6fccab26df
|
@ -39,6 +39,8 @@
|
||||||
|
|
||||||
extern struct kset devices_subsys; /* needed for vio_find_name() */
|
extern struct kset devices_subsys; /* needed for vio_find_name() */
|
||||||
|
|
||||||
|
static struct bus_type vio_bus_type;
|
||||||
|
|
||||||
static struct vio_dev vio_bus_device = { /* fake "parent" device */
|
static struct vio_dev vio_bus_device = { /* fake "parent" device */
|
||||||
.name = vio_bus_device.dev.bus_id,
|
.name = vio_bus_device.dev.bus_id,
|
||||||
.type = "",
|
.type = "",
|
||||||
|
@ -388,7 +390,7 @@ static int vio_hotplug(struct device *dev, char **envp, int num_envp,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct bus_type vio_bus_type = {
|
static struct bus_type vio_bus_type = {
|
||||||
.name = "vio",
|
.name = "vio",
|
||||||
.dev_attrs = vio_dev_attrs,
|
.dev_attrs = vio_dev_attrs,
|
||||||
.uevent = vio_hotplug,
|
.uevent = vio_hotplug,
|
||||||
|
|
|
@ -63,7 +63,6 @@ struct vio_driver {
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct dma_mapping_ops vio_dma_ops;
|
extern struct dma_mapping_ops vio_dma_ops;
|
||||||
extern struct bus_type vio_bus_type;
|
|
||||||
|
|
||||||
extern int vio_register_driver(struct vio_driver *drv);
|
extern int vio_register_driver(struct vio_driver *drv);
|
||||||
extern void vio_unregister_driver(struct vio_driver *drv);
|
extern void vio_unregister_driver(struct vio_driver *drv);
|
||||||
|
|
Loading…
Reference in New Issue