diff options
author | David Vrabel <david.vrabel@csr.com> | 2008-09-17 11:34:12 -0400 |
---|---|---|
committer | David Vrabel <dv02@dv02pc01.europe.root.pri> | 2008-09-17 11:54:25 -0400 |
commit | da389eac31be24556a71dd59ea6539ae4cba5c15 (patch) | |
tree | 2352d3f63ab00b6be124cde7891f7ad6fafd824e /drivers/uwb/umc-drv.c | |
parent | 2f86c3e67d6423d6d23ee2f737ad4f0730435742 (diff) |
uwb: add the umc bus
The UMC bus is used for the capabilities exposed by a UWB Multi-interface
Controller as described in the WHCI specification.
Signed-off-by: David Vrabel <david.vrabel@csr.com>
Diffstat (limited to 'drivers/uwb/umc-drv.c')
-rw-r--r-- | drivers/uwb/umc-drv.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/drivers/uwb/umc-drv.c b/drivers/uwb/umc-drv.c new file mode 100644 index 000000000000..367b5eb85d60 --- /dev/null +++ b/drivers/uwb/umc-drv.c | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * UWB Multi-interface Controller driver management. | ||
3 | * | ||
4 | * Copyright (C) 2007 Cambridge Silicon Radio Ltd. | ||
5 | * | ||
6 | * This file is released under the GNU GPL v2. | ||
7 | */ | ||
8 | #include <linux/kernel.h> | ||
9 | #include <linux/uwb/umc.h> | ||
10 | |||
11 | int __umc_driver_register(struct umc_driver *umc_drv, struct module *module, | ||
12 | const char *mod_name) | ||
13 | { | ||
14 | umc_drv->driver.name = umc_drv->name; | ||
15 | umc_drv->driver.owner = module; | ||
16 | umc_drv->driver.mod_name = mod_name; | ||
17 | umc_drv->driver.bus = &umc_bus_type; | ||
18 | |||
19 | return driver_register(&umc_drv->driver); | ||
20 | } | ||
21 | EXPORT_SYMBOL_GPL(__umc_driver_register); | ||
22 | |||
23 | /** | ||
24 | * umc_driver_register - unregister a UMC capabiltity driver. | ||
25 | * @umc_drv: pointer to the driver. | ||
26 | */ | ||
27 | void umc_driver_unregister(struct umc_driver *umc_drv) | ||
28 | { | ||
29 | driver_unregister(&umc_drv->driver); | ||
30 | } | ||
31 | EXPORT_SYMBOL_GPL(umc_driver_unregister); | ||