mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
da389eac31
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>
32 lines
819 B
C
32 lines
819 B
C
/*
|
|
* UWB Multi-interface Controller driver management.
|
|
*
|
|
* Copyright (C) 2007 Cambridge Silicon Radio Ltd.
|
|
*
|
|
* This file is released under the GNU GPL v2.
|
|
*/
|
|
#include <linux/kernel.h>
|
|
#include <linux/uwb/umc.h>
|
|
|
|
int __umc_driver_register(struct umc_driver *umc_drv, struct module *module,
|
|
const char *mod_name)
|
|
{
|
|
umc_drv->driver.name = umc_drv->name;
|
|
umc_drv->driver.owner = module;
|
|
umc_drv->driver.mod_name = mod_name;
|
|
umc_drv->driver.bus = &umc_bus_type;
|
|
|
|
return driver_register(&umc_drv->driver);
|
|
}
|
|
EXPORT_SYMBOL_GPL(__umc_driver_register);
|
|
|
|
/**
|
|
* umc_driver_register - unregister a UMC capabiltity driver.
|
|
* @umc_drv: pointer to the driver.
|
|
*/
|
|
void umc_driver_unregister(struct umc_driver *umc_drv)
|
|
{
|
|
driver_unregister(&umc_drv->driver);
|
|
}
|
|
EXPORT_SYMBOL_GPL(umc_driver_unregister);
|