Lines Matching refs:isa_driver
28 struct isa_driver *isa_driver = to_isa_driver(driver); in isa_bus_match() local
30 if (dev->platform_data == isa_driver) { in isa_bus_match()
31 if (!isa_driver->match || in isa_bus_match()
32 isa_driver->match(dev, to_isa_dev(dev)->id)) in isa_bus_match()
41 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_probe() local
43 if (isa_driver && isa_driver->probe) in isa_bus_probe()
44 return isa_driver->probe(dev, to_isa_dev(dev)->id); in isa_bus_probe()
51 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_remove() local
53 if (isa_driver && isa_driver->remove) in isa_bus_remove()
54 isa_driver->remove(dev, to_isa_dev(dev)->id); in isa_bus_remove()
59 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_shutdown() local
61 if (isa_driver && isa_driver->shutdown) in isa_bus_shutdown()
62 isa_driver->shutdown(dev, to_isa_dev(dev)->id); in isa_bus_shutdown()
67 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_suspend() local
69 if (isa_driver && isa_driver->suspend) in isa_bus_suspend()
70 return isa_driver->suspend(dev, to_isa_dev(dev)->id, state); in isa_bus_suspend()
77 struct isa_driver *isa_driver = dev->platform_data; in isa_bus_resume() local
79 if (isa_driver && isa_driver->resume) in isa_bus_resume()
80 return isa_driver->resume(dev, to_isa_dev(dev)->id); in isa_bus_resume()
100 void isa_unregister_driver(struct isa_driver *isa_driver) in isa_unregister_driver() argument
102 struct device *dev = isa_driver->devices; in isa_unregister_driver()
109 driver_unregister(&isa_driver->driver); in isa_unregister_driver()
113 int isa_register_driver(struct isa_driver *isa_driver, unsigned int ndev) in isa_register_driver() argument
118 isa_driver->driver.bus = &isa_bus_type; in isa_register_driver()
119 isa_driver->devices = NULL; in isa_register_driver()
121 error = driver_register(&isa_driver->driver); in isa_register_driver()
138 isa_driver->driver.name, id); in isa_register_driver()
139 isa_dev->dev.platform_data = isa_driver; in isa_register_driver()
152 isa_dev->next = isa_driver->devices; in isa_register_driver()
153 isa_driver->devices = &isa_dev->dev; in isa_register_driver()
156 if (!error && !isa_driver->devices) in isa_register_driver()
160 isa_unregister_driver(isa_driver); in isa_register_driver()