9 #include <linux/module.h>
37 static int soundbus_probe(
struct device *
dev)
51 error = drv->
probe(soundbus_dev);
61 struct soundbus_dev * soundbus_dev;
74 of = &soundbus_dev->
ofdev;
90 while (compat && cplen > 0) {
108 static int soundbus_device_remove(
struct device *dev)
114 drv->
remove(soundbus_dev);
120 static void soundbus_device_shutdown(
struct device *dev)
137 return drv->
suspend(soundbus_dev, state);
141 static int soundbus_device_resume(
struct device * dev)
147 return drv->
resume(soundbus_dev);
153 static struct bus_type soundbus_bus_type = {
154 .name =
"aoa-soundbus",
155 .probe = soundbus_probe,
156 .uevent = soundbus_uevent,
157 .remove = soundbus_device_remove,
158 .shutdown = soundbus_device_shutdown,
160 .suspend = soundbus_device_suspend,
161 .resume = soundbus_device_resume,
172 !dev->
ofdev.dev.of_node ||
175 printk(
KERN_ERR "soundbus: adding device failed sanity check!\n");
180 dev->
ofdev.dev.bus = &soundbus_bus_type;
195 drv->
driver.bus = &soundbus_bus_type;
208 static int __init soundbus_init(
void)
213 static void __exit soundbus_exit(
void)