Skip to content

Commit

Permalink
[POWERPC] Make vio_bus_type static
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Oct 3, 2007
1 parent c868078 commit 6fccab2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion arch/powerpc/kernel/vio.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@

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 */
.name = vio_bus_device.dev.bus_id,
.type = "",
Expand Down Expand Up @@ -388,7 +390,7 @@ static int vio_hotplug(struct device *dev, char **envp, int num_envp,
return 0;
}

struct bus_type vio_bus_type = {
static struct bus_type vio_bus_type = {
.name = "vio",
.dev_attrs = vio_dev_attrs,
.uevent = vio_hotplug,
Expand Down
1 change: 0 additions & 1 deletion include/asm-powerpc/vio.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ struct vio_driver {
};

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 void vio_unregister_driver(struct vio_driver *drv);
Expand Down

0 comments on commit 6fccab2

Please sign in to comment.