Skip to content

Commit 2505f87

Browse files
ukleinekgroeck
authored andcommitted
hwmon: (nct6775): Actually make use of the HWMON_NCT6775 symbol namespace
DEFAULT_SYMBOL_NAMESPACE must already be defined when <linux/export.h> is included. So move the define above the include block. Fixes: c3963bc ("hwmon: (nct6775) Split core and platform driver") Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
1 parent 339bca4 commit 2505f87

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/hwmon/nct6775-core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242

4343
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
4444

45+
#undef DEFAULT_SYMBOL_NAMESPACE
46+
#define DEFAULT_SYMBOL_NAMESPACE "HWMON_NCT6775"
47+
4548
#include <linux/module.h>
4649
#include <linux/init.h>
4750
#include <linux/slab.h>
@@ -56,9 +59,6 @@
5659
#include "lm75.h"
5760
#include "nct6775.h"
5861

59-
#undef DEFAULT_SYMBOL_NAMESPACE
60-
#define DEFAULT_SYMBOL_NAMESPACE "HWMON_NCT6775"
61-
6262
#define USE_ALTERNATE
6363

6464
/* used to set data->name = nct6775_device_names[data->sio_kind] */

0 commit comments

Comments
 (0)