of: Remove duplicate fields from of_platform_driver
[safe/jmp/linux-2.6] / drivers / of / platform.c
index 9fd7f7d..ba402c6 100644 (file)
@@ -385,13 +385,6 @@ int of_bus_type_init(struct bus_type *bus, const char *name)
 
 int of_register_driver(struct of_platform_driver *drv, struct bus_type *bus)
 {
-       /* initialize common driver fields */
-       if (!drv->driver.name)
-               drv->driver.name = drv->name;
-       if (!drv->driver.owner)
-               drv->driver.owner = drv->owner;
-       if (!drv->driver.of_match_table)
-               drv->driver.of_match_table = drv->match_table;
        drv->driver.bus = bus;
 
        /* register with core */