diff options
author | Stephen Rothwell | 2007-10-18 06:17:42 +0200 |
---|---|---|
committer | David S. Miller | 2007-10-18 06:17:42 +0200 |
commit | 5c45708352a040f19caceb683c78bc86aad466f6 (patch) | |
tree | 6541789a623c189c1e91ffd91bd972cad938d130 /arch/sparc64/kernel | |
parent | [SPARC] Videopix Frame Grabber: Convert device_lock_sem to mutex (diff) | |
download | kernel-qcow2-linux-5c45708352a040f19caceb683c78bc86aad466f6.tar.gz kernel-qcow2-linux-5c45708352a040f19caceb683c78bc86aad466f6.tar.xz kernel-qcow2-linux-5c45708352a040f19caceb683c78bc86aad466f6.zip |
[SPARC/64]: Consolidate of_register_driver
Also of_unregister_driver. These will be shortly also used by the
PowerPC code.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel')
-rw-r--r-- | arch/sparc64/kernel/of_device.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/sparc64/kernel/of_device.c b/arch/sparc64/kernel/of_device.c index 42d779866fba..fc5c0cc793b8 100644 --- a/arch/sparc64/kernel/of_device.c +++ b/arch/sparc64/kernel/of_device.c @@ -869,26 +869,6 @@ static int __init of_debug(char *str) __setup("of_debug=", of_debug); -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; - drv->driver.bus = bus; - - /* register with core */ - return driver_register(&drv->driver); -} -EXPORT_SYMBOL(of_register_driver); - -void of_unregister_driver(struct of_platform_driver *drv) -{ - driver_unregister(&drv->driver); -} -EXPORT_SYMBOL(of_unregister_driver); - struct of_device* of_platform_device_create(struct device_node *np, const char *bus_id, struct device *parent, |