aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-10-24 00:53:21 -0400
committerStephen Rothwell <sfr@canb.auug.org.au>2005-10-24 01:42:12 -0400
commit6fdf5392caa4c3cba65add0a4beec9f5eb96b723 (patch)
tree336ba343889a1d720e09477c2ea88cd5f99a67b9 /arch
parentf38d87f566195d78bd70538d5c774758f2d926d3 (diff)
powerpc: don't duplicate name between vio_driver and device_driver
Just set the name field directly in the device_driver structure contained in the vio_driver struct. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/vio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c
index 0e555b7a6587..3aec492ec767 100644
--- a/arch/powerpc/kernel/vio.c
+++ b/arch/powerpc/kernel/vio.c
@@ -76,10 +76,9 @@ static int vio_bus_remove(struct device *dev)
76int vio_register_driver(struct vio_driver *viodrv) 76int vio_register_driver(struct vio_driver *viodrv)
77{ 77{
78 printk(KERN_DEBUG "%s: driver %s registering\n", __FUNCTION__, 78 printk(KERN_DEBUG "%s: driver %s registering\n", __FUNCTION__,
79 viodrv->name); 79 viodrv->driver.name);
80 80
81 /* fill in 'struct driver' fields */ 81 /* fill in 'struct driver' fields */
82 viodrv->driver.name = viodrv->name;
83 viodrv->driver.bus = &vio_bus_type; 82 viodrv->driver.bus = &vio_bus_type;
84 viodrv->driver.probe = vio_bus_probe; 83 viodrv->driver.probe = vio_bus_probe;
85 viodrv->driver.remove = vio_bus_remove; 84 viodrv->driver.remove = vio_bus_remove;