mfd: rsmu: Split core code into separate module
authorArnd Bergmann <arnd@arndb.de>
Wed, 29 May 2024 09:48:47 +0000 (11:48 +0200)
committerLee Jones <lee@kernel.org>
Thu, 4 Jul 2024 16:08:02 +0000 (17:08 +0100)
commitc879a8c39dd55e7fabdd8d13341f7bc5200db377
tree4dc7b0ceed4cfb4f65bdb9075543317519c1cb13
parent6ca6a63e9639c82d4e3863e0e26bf431a55ee5cb
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>
drivers/mfd/Makefile
drivers/mfd/rsmu_core.c