此情況適用於:先加載devices,後加driver時候
driver_register->bus_add_driver->driver_attach->__driver_attach->driver_match_device->
static inline int driver_match_device(struct device_driver *drv,
struct device *dev)
{
return drv->bus->match ? drv->bus->match(dev, drv) : 1;
}
阅读(579) | 评论(0) | 转发(0) |