Lines Matching defs:drv
127 retval = driver_attach(&pdrv->drv);
136 pcmcia_free_dynids(struct pcmcia_driver *drv)
140 mutex_lock(&drv->dynids.lock);
141 list_for_each_entry_safe(dynid, n, &drv->dynids.list, node) {
145 mutex_unlock(&drv->dynids.lock);
149 pcmcia_create_newid_file(struct pcmcia_driver *drv)
152 if (drv->probe != NULL)
153 error = driver_create_file(&drv->drv, &driver_attr_new_id);
158 pcmcia_remove_newid_file(struct pcmcia_driver *drv)
160 driver_remove_file(&drv->drv, &driver_attr_new_id);
179 driver->drv.bus = &pcmcia_bus_type;
180 driver->drv.owner = driver->owner;
181 driver->drv.name = driver->name;
187 error = driver_register(&driver->drv);
193 driver_unregister(&driver->drv);
207 driver_unregister(&driver->drv);
908 static int pcmcia_bus_match(struct device *dev, struct device_driver *drv)
911 struct pcmcia_driver *p_drv = to_pcmcia_drv(drv);
918 dev_dbg(dev, "trying to match to %s\n", drv->name);
920 dev_dbg(dev, "matched to %s\n", drv->name);
928 dev_dbg(dev, "trying to match to %s\n", drv->name);
930 dev_dbg(dev, "matched to %s\n", drv->name);