diff options
| author | Uwe Kleine-König <[email protected]> | 2025-01-23 10:11:11 +0000 |
|---|---|---|
| committer | Andy Shevchenko <[email protected]> | 2025-02-03 15:24:05 +0000 |
| commit | 112f5e0917cff2af35ada29e7db0b4d05bca7941 (patch) | |
| tree | 1473dc54694e8870c2f375143ac0899fefc06e6b /drivers/pwm/pwm-lpss.c | |
| parent | pinctrl: intel: Import PWM_LPSS namespace for devm_pwm_lpss_probe() (diff) | |
| download | kernel-112f5e0917cff2af35ada29e7db0b4d05bca7941.tar.gz kernel-112f5e0917cff2af35ada29e7db0b4d05bca7941.zip | |
pwm: lpss: Actually use a module namespace by defining the namespace earlier
DEFAULT_SYMBOL_NAMESPACE must be already defined when <linux/export.h>
is included. So move the define above the include block.
With the DEFAULT_SYMBOL_NAMESPACE being defined too late, the exported
symbols end up in the default namespace. So the respective modules can
use the symbols defined in pwm-lpss.c just fine and up to now just
imported the PWM_LPSS namespace without any gain.
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-lpss.c')
| -rw-r--r-- | drivers/pwm/pwm-lpss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-lpss.c b/drivers/pwm/pwm-lpss.c index 3b99feb3bb49..e3c72ed7fff1 100644 --- a/drivers/pwm/pwm-lpss.c +++ b/drivers/pwm/pwm-lpss.c @@ -10,6 +10,8 @@ * Author: Alan Cox <[email protected]> */ +#define DEFAULT_SYMBOL_NAMESPACE "PWM_LPSS" + #include <linux/bits.h> #include <linux/delay.h> #include <linux/io.h> @@ -19,8 +21,6 @@ #include <linux/pm_runtime.h> #include <linux/time.h> -#define DEFAULT_SYMBOL_NAMESPACE "PWM_LPSS" - #include "pwm-lpss.h" #define PWM 0x00000000 |
