.name, .match_table and .owner already exist in struct device_driver. Remove the duplication from struct of_platform_driver.
Signed-off-by: Grant Likely grant.likely@secretlab.ca ---
drivers/of/platform.c | 7 ------- include/linux/of_platform.h | 4 ---- 2 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 9fd7f7d..ba402c6 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)
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 */ diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h index ac3ae07..1643d37 100644 --- a/include/linux/of_platform.h +++ b/include/linux/of_platform.h @@ -31,10 +31,6 @@ extern struct bus_type of_platform_bus_type; */ struct of_platform_driver { - const char *name; - const struct of_device_id *match_table; - struct module *owner; - int (*probe)(struct of_device* dev, const struct of_device_id *match); int (*remove)(struct of_device* dev);