diff options
-rw-r--r-- | arch/powerpc/kernel/vio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c index 13c41495fe06..13c655ba2841 100644 --- a/arch/powerpc/kernel/vio.c +++ b/arch/powerpc/kernel/vio.c | |||
@@ -76,7 +76,7 @@ static void vio_bus_shutdown(struct device *dev) | |||
76 | struct vio_dev *viodev = to_vio_dev(dev); | 76 | struct vio_dev *viodev = to_vio_dev(dev); |
77 | struct vio_driver *viodrv = to_vio_driver(dev->driver); | 77 | struct vio_driver *viodrv = to_vio_driver(dev->driver); |
78 | 78 | ||
79 | if (viodrv->shutdown) | 79 | if (dev->driver && viodrv->shutdown) |
80 | viodrv->shutdown(viodev); | 80 | viodrv->shutdown(viodev); |
81 | } | 81 | } |
82 | 82 | ||
@@ -91,9 +91,6 @@ int vio_register_driver(struct vio_driver *viodrv) | |||
91 | 91 | ||
92 | /* fill in 'struct driver' fields */ | 92 | /* fill in 'struct driver' fields */ |
93 | viodrv->driver.bus = &vio_bus_type; | 93 | viodrv->driver.bus = &vio_bus_type; |
94 | viodrv->driver.probe = vio_bus_probe; | ||
95 | viodrv->driver.remove = vio_bus_remove; | ||
96 | viodrv->driver.shutdown = vio_bus_shutdown; | ||
97 | 94 | ||
98 | return driver_register(&viodrv->driver); | 95 | return driver_register(&viodrv->driver); |
99 | } | 96 | } |
@@ -295,4 +292,7 @@ struct bus_type vio_bus_type = { | |||
295 | .name = "vio", | 292 | .name = "vio", |
296 | .uevent = vio_hotplug, | 293 | .uevent = vio_hotplug, |
297 | .match = vio_bus_match, | 294 | .match = vio_bus_match, |
295 | .probe = vio_bus_probe, | ||
296 | .remove = vio_bus_remove, | ||
297 | .shutdown = vio_bus_shutdown, | ||
298 | }; | 298 | }; |