aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64/kernel/vio.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-08-17 02:40:12 -0400
committerPaul Mackerras <paulus@samba.org>2005-08-29 23:23:47 -0400
commitb877b90f227fb9698d99fb70492d432362584082 (patch)
treeb58168217324bc07c8d6e7368246fa24ba7e96db /arch/ppc64/kernel/vio.c
parent5c0b4b8759f78c31172088a91e10733fc014ccee (diff)
[PATCH] Create vio_register_device
Take some assignments out of vio_register_device_common and rename it to vio_register_device. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/vio.c')
-rw-r--r--arch/ppc64/kernel/vio.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/ppc64/kernel/vio.c b/arch/ppc64/kernel/vio.c
index 7798f01f77b4..3eab2290b12a 100644
--- a/arch/ppc64/kernel/vio.c
+++ b/arch/ppc64/kernel/vio.c
@@ -171,14 +171,8 @@ static ssize_t viodev_show_name(struct device *dev,
171} 171}
172DEVICE_ATTR(name, S_IRUSR | S_IRGRP | S_IROTH, viodev_show_name, NULL); 172DEVICE_ATTR(name, S_IRUSR | S_IRGRP | S_IROTH, viodev_show_name, NULL);
173 173
174struct vio_dev * __devinit vio_register_device_common( 174struct vio_dev * __devinit vio_register_device(struct vio_dev *viodev)
175 struct vio_dev *viodev, char *name, char *type,
176 uint32_t unit_address, struct iommu_table *iommu_table)
177{ 175{
178 viodev->name = name;
179 viodev->type = type;
180 viodev->unit_address = unit_address;
181 viodev->iommu_table = iommu_table;
182 /* init generic 'struct device' fields: */ 176 /* init generic 'struct device' fields: */
183 viodev->dev.parent = &vio_bus_device.dev; 177 viodev->dev.parent = &vio_bus_device.dev;
184 viodev->dev.bus = &vio_bus_type; 178 viodev->dev.bus = &vio_bus_type;