diff options
author | 2024-05-29 11:48:47 +0200 | |
---|---|---|
committer | 2024-07-04 17:08:02 +0100 | |
commit | c879a8c39dd55e7fabdd8d13341f7bc5200db377 (patch) | |
tree | 4dc7b0ceed4cfb4f65bdb9075543317519c1cb13 /drivers/mfd/rsmu_core.c | |
parent | mfd: cros_ec: Register hardware monitoring subdevice (diff) | |
download | wireguard-linux-c879a8c39dd55e7fabdd8d13341f7bc5200db377.tar.xz wireguard-linux-c879a8c39dd55e7fabdd8d13341f7bc5200db377.zip |
mfd: rsmu: Split core code into separate module
Linking a file into two modules can have unintended side-effects
and produces a W=1 warning:
scripts/Makefile.build:236: drivers/mfd/Makefile: rsmu_core.o is added to multiple modules: rsmu-i2c rsmu-spi
Make this one a separate module instead.
Fixes: a1867f85e06e ("mfd: Add Renesas Synchronization Management Unit (SMU) support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240529094856.1869543-1-arnd@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/mfd/rsmu_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/rsmu_core.c b/drivers/mfd/rsmu_core.c index 29437fd0bd5b..fd04a6e5dfa3 100644 --- a/drivers/mfd/rsmu_core.c +++ b/drivers/mfd/rsmu_core.c @@ -78,11 +78,13 @@ int rsmu_core_init(struct rsmu_ddata *rsmu) return ret; } +EXPORT_SYMBOL_GPL(rsmu_core_init); void rsmu_core_exit(struct rsmu_ddata *rsmu) { mutex_destroy(&rsmu->lock); } +EXPORT_SYMBOL_GPL(rsmu_core_exit); MODULE_DESCRIPTION("Renesas SMU core driver"); MODULE_LICENSE("GPL"); |