Lines Matching defs:drv
21 static int hda_codec_match(struct hdac_device *dev, struct hdac_driver *drv)
25 container_of(drv, struct hda_codec_driver, core);
176 int __hda_codec_driver_register(struct hda_codec_driver *drv, const char *name,
179 drv->core.driver.name = name;
180 drv->core.driver.owner = owner;
181 drv->core.driver.bus = &snd_hda_bus_type;
182 drv->core.driver.probe = hda_codec_driver_probe;
183 drv->core.driver.remove = hda_codec_driver_remove;
184 drv->core.driver.shutdown = hda_codec_driver_shutdown;
185 drv->core.driver.pm = &hda_codec_driver_pm;
186 drv->core.type = HDA_DEV_LEGACY;
187 drv->core.match = hda_codec_match;
188 drv->core.unsol_event = hda_codec_unsol_event;
189 return driver_register(&drv->core.driver);
193 void hda_codec_driver_unregister(struct hda_codec_driver *drv)
195 driver_unregister(&drv->core.driver);