![Greg Kroah-Hartman](/assets/img/avatar_default.png)
The UWB and wusbcore code is long obsolete, so let us just move the code out of the real part of the kernel and into the drivers/staging/ location with plans to remove it entirely in a few releases. Link: https://lore.kernel.org/r/20190806101509.GA11280@kroah.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
32 lines
834 B
C
32 lines
834 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* UWB Multi-interface Controller driver management.
|
|
*
|
|
* Copyright (C) 2007 Cambridge Silicon Radio Ltd.
|
|
*/
|
|
#include <linux/kernel.h>
|
|
#include <linux/export.h>
|
|
#include "include/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);
|