From: Uwe Kleine-König Date: Tue, 3 Dec 2024 17:31:49 +0000 (+0100) Subject: hwmon: (nct6775): Actually make use of the HWMON_NCT6775 symbol namespace X-Git-Tag: v6.14-rc1~154^2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2505f87eb3af55f3dd7f57d7cb7783b94b52a2d9;p=thirdparty%2Flinux.git hwmon: (nct6775): Actually make use of the HWMON_NCT6775 symbol namespace DEFAULT_SYMBOL_NAMESPACE must already be defined when is included. So move the define above the include block. Fixes: c3963bc0a0cf ("hwmon: (nct6775) Split core and platform driver") Signed-off-by: Uwe Kleine-König Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/nct6775-core.c b/drivers/hwmon/nct6775-core.c index c243b51837d2f..fa3351351825b 100644 --- a/drivers/hwmon/nct6775-core.c +++ b/drivers/hwmon/nct6775-core.c @@ -42,6 +42,9 @@ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt +#undef DEFAULT_SYMBOL_NAMESPACE +#define DEFAULT_SYMBOL_NAMESPACE "HWMON_NCT6775" + #include #include #include @@ -56,9 +59,6 @@ #include "lm75.h" #include "nct6775.h" -#undef DEFAULT_SYMBOL_NAMESPACE -#define DEFAULT_SYMBOL_NAMESPACE "HWMON_NCT6775" - #define USE_ALTERNATE /* used to set data->name = nct6775_device_names[data->sio_kind] */