Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
drivers
uwb
umc-drv.c
Go to the documentation of this file.
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/export.h>
10
#include <
linux/uwb/umc.h
>
11
12
int
__umc_driver_register
(
struct
umc_driver
*umc_drv,
struct
module
*
module
,
13
const
char
*mod_name)
14
{
15
umc_drv->
driver
.name = umc_drv->
name
;
16
umc_drv->
driver
.owner = module;
17
umc_drv->
driver
.mod_name = mod_name;
18
umc_drv->
driver
.bus = &
umc_bus_type
;
19
20
return
driver_register
(&umc_drv->
driver
);
21
}
22
EXPORT_SYMBOL_GPL
(
__umc_driver_register
);
23
28
void
umc_driver_unregister
(
struct
umc_driver
*umc_drv)
29
{
30
driver_unregister
(&umc_drv->
driver
);
31
}
32
EXPORT_SYMBOL_GPL
(
umc_driver_unregister
);
Generated on Thu Jan 10 2013 14:39:05 for Linux Kernel by
1.8.2