Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <u.kleine-koenig@baylibre.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

authored by

Uwe Kleine-König and committed by
Andy Shevchenko
112f5e09 c42a407b

+2 -2
+2 -2
drivers/pwm/pwm-lpss.c
··· 10 10 * Author: Alan Cox <alan@linux.intel.com> 11 11 */ 12 12 13 + #define DEFAULT_SYMBOL_NAMESPACE "PWM_LPSS" 14 + 13 15 #include <linux/bits.h> 14 16 #include <linux/delay.h> 15 17 #include <linux/io.h> ··· 20 18 #include <linux/module.h> 21 19 #include <linux/pm_runtime.h> 22 20 #include <linux/time.h> 23 - 24 - #define DEFAULT_SYMBOL_NAMESPACE "PWM_LPSS" 25 21 26 22 #include "pwm-lpss.h" 27 23