mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 23:51:39 +00:00
475c0a6b2c
These macros are no longer in module.h and module.h is no longer present everywhere. Call out export.h for the real users who are making use of these macros, or else we'll get things like: CC drivers/uwb/umc-drv.o drivers/uwb/umc-dev.c:42: warning: data definition has no type or storage class drivers/uwb/umc-dev.c:42: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’ drivers/uwb/umc-dev.c:42: warning: parameter names (without types) in function declaration Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
33 lines
845 B
C
33 lines
845 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/export.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);
|