diff options
Diffstat (limited to 'arch/sparc64/kernel/of_device.c')
-rw-r--r-- | arch/sparc64/kernel/of_device.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/of_device.c b/arch/sparc64/kernel/of_device.c index 4cc77485f536..42d779866fba 100644 --- a/arch/sparc64/kernel/of_device.c +++ b/arch/sparc64/kernel/of_device.c | |||
@@ -872,7 +872,10 @@ __setup("of_debug=", of_debug); | |||
872 | int of_register_driver(struct of_platform_driver *drv, struct bus_type *bus) | 872 | int of_register_driver(struct of_platform_driver *drv, struct bus_type *bus) |
873 | { | 873 | { |
874 | /* initialize common driver fields */ | 874 | /* initialize common driver fields */ |
875 | drv->driver.name = drv->name; | 875 | if (!drv->driver.name) |
876 | drv->driver.name = drv->name; | ||
877 | if (!drv->driver.owner) | ||
878 | drv->driver.owner = drv->owner; | ||
876 | drv->driver.bus = bus; | 879 | drv->driver.bus = bus; |
877 | 880 | ||
878 | /* register with core */ | 881 | /* register with core */ |