]> www.infradead.org Git - users/dwmw2/linux.git/commit
pwm: lpss: Actually use a module namespace by defining the namespace earlier
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Thu, 23 Jan 2025 10:11:11 +0000 (11:11 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 3 Feb 2025 15:24:05 +0000 (17:24 +0200)
commit112f5e0917cff2af35ada29e7db0b4d05bca7941
tree1473dc54694e8870c2f375143ac0899fefc06e6b
parentc42a407beeb91dd5e8cf1d537a7291a5d6415192
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>
drivers/pwm/pwm-lpss.c