14 #include <linux/module.h>
31 const struct zorro_dev *z)
43 static int zorro_device_probe(
struct device *
dev)
46 struct zorro_driver *drv = to_zorro_driver(dev->
driver);
47 struct zorro_dev *z = to_zorro_dev(dev);
49 if (!z->driver && drv->probe) {
54 error = drv->probe(z,
id);
64 static int zorro_device_remove(
struct device *dev)
66 struct zorro_dev *z = to_zorro_dev(dev);
67 struct zorro_driver *drv = to_zorro_driver(dev->
driver);
89 drv->driver.name = drv->name;
128 struct zorro_dev *z = to_zorro_dev(dev);
129 struct zorro_driver *zorro_drv = to_zorro_driver(drv);
145 #ifdef CONFIG_HOTPLUG
151 z = to_zorro_dev(dev);
169 .match = zorro_bus_match,
170 .uevent = zorro_uevent,
171 .probe = zorro_device_probe,
172 .remove = zorro_device_remove,
177 static int __init zorro_driver_init(
void)