net: wimax/i2400m: fix NULL-deref at probe
[pandora-kernel.git] / drivers / net / wimax / i2400m / debug-levels.h
1 /*
2  * Intel Wireless WiMAX Connection 2400m
3  * Debug levels control file for the i2400m module
4  *
5  *
6  * Copyright (C) 2007-2008 Intel Corporation <linux-wimax@intel.com>
7  * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License version
11  * 2 as published by the Free Software Foundation.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  * 02110-1301, USA.
22  */
23 #ifndef __debug_levels__h__
24 #define __debug_levels__h__
25
26 /* Maximum compile and run time debug level for all submodules */
27 #define D_MODULENAME i2400m
28 #define D_MASTER CONFIG_WIMAX_I2400M_DEBUG_LEVEL
29
30 #include <linux/wimax/debug.h>
31
32 /* List of all the enabled modules */
33 enum d_module {
34         D_SUBMODULE_DECLARE(control),
35         D_SUBMODULE_DECLARE(driver),
36         D_SUBMODULE_DECLARE(debugfs),
37         D_SUBMODULE_DECLARE(fw),
38         D_SUBMODULE_DECLARE(netdev),
39         D_SUBMODULE_DECLARE(rfkill),
40         D_SUBMODULE_DECLARE(rx),
41         D_SUBMODULE_DECLARE(sysfs),
42         D_SUBMODULE_DECLARE(tx),
43 };
44
45
46 #endif /* #ifndef __debug_levels__h__ */