diff --git a/drivers/base/bus.c b/drivers/base/bus.c index 1264e40..b889a48 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c @@ -54,9 +54,6 @@ drv->of_compatible) return of_match(dev, drv); - if (!strcmp(dev->name, drv->name)) - return 0; - if (drv->id_table) { const struct platform_device_id *id = drv->id_table; @@ -67,6 +64,8 @@ } id++; } + } else if (!strcmp(dev->name, drv->name)) { + return 0; } return -1;