aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of/platform.c')
-rw-r--r--drivers/of/platform.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index 9fd7f7d0a0d1..ba402c613ede 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -385,13 +385,6 @@ int of_bus_type_init(struct bus_type *bus, const char *name)
385 385
386int of_register_driver(struct of_platform_driver *drv, struct bus_type *bus) 386int of_register_driver(struct of_platform_driver *drv, struct bus_type *bus)
387{ 387{
388 /* initialize common driver fields */
389 if (!drv->driver.name)
390 drv->driver.name = drv->name;
391 if (!drv->driver.owner)
392 drv->driver.owner = drv->owner;
393 if (!drv->driver.of_match_table)
394 drv->driver.of_match_table = drv->match_table;
395 drv->driver.bus = bus; 388 drv->driver.bus = bus;
396 389
397 /* register with core */ 390 /* register with core */