diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-09-21 00:32:05 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-10-02 21:48:43 -0400 |
commit | 6fccab26df4f59815d7ec912e4111a92807780de (patch) | |
tree | cae970d08bc1c36844a7188a6adc3ea037edea4c /arch/powerpc/kernel/vio.c | |
parent | c868078ed82e3651b16f68a420ae7568de2102db (diff) |
[POWERPC] Make vio_bus_type static
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/vio.c')
-rw-r--r-- | arch/powerpc/kernel/vio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c index ee15c2280aea..1d7b272b3737 100644 --- a/arch/powerpc/kernel/vio.c +++ b/arch/powerpc/kernel/vio.c | |||
@@ -39,6 +39,8 @@ | |||
39 | 39 | ||
40 | extern struct kset devices_subsys; /* needed for vio_find_name() */ | 40 | extern struct kset devices_subsys; /* needed for vio_find_name() */ |
41 | 41 | ||
42 | static struct bus_type vio_bus_type; | ||
43 | |||
42 | static struct vio_dev vio_bus_device = { /* fake "parent" device */ | 44 | static struct vio_dev vio_bus_device = { /* fake "parent" device */ |
43 | .name = vio_bus_device.dev.bus_id, | 45 | .name = vio_bus_device.dev.bus_id, |
44 | .type = "", | 46 | .type = "", |
@@ -388,7 +390,7 @@ static int vio_hotplug(struct device *dev, char **envp, int num_envp, | |||
388 | return 0; | 390 | return 0; |
389 | } | 391 | } |
390 | 392 | ||
391 | struct bus_type vio_bus_type = { | 393 | static struct bus_type vio_bus_type = { |
392 | .name = "vio", | 394 | .name = "vio", |
393 | .dev_attrs = vio_dev_attrs, | 395 | .dev_attrs = vio_dev_attrs, |
394 | .uevent = vio_hotplug, | 396 | .uevent = vio_hotplug, |