diff options
author | Arnd Bergmann <arnd@arndb.de> | 2024-05-29 11:48:47 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-07-04 17:08:02 +0100 |
commit | c879a8c39dd55e7fabdd8d13341f7bc5200db377 (patch) | |
tree | 4dc7b0ceed4cfb4f65bdb9075543317519c1cb13 /drivers/mfd/Makefile | |
parent | 6ca6a63e9639c82d4e3863e0e26bf431a55ee5cb (diff) |
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 'drivers/mfd/Makefile')
-rw-r--r-- | drivers/mfd/Makefile | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile index ce38d643009f..02b651cd7535 100644 --- a/drivers/mfd/Makefile +++ b/drivers/mfd/Makefile @@ -286,7 +286,5 @@ obj-$(CONFIG_MFD_INTEL_M10_BMC_PMCI) += intel-m10-bmc-pmci.o obj-$(CONFIG_MFD_ATC260X) += atc260x-core.o obj-$(CONFIG_MFD_ATC260X_I2C) += atc260x-i2c.o -rsmu-i2c-objs := rsmu_core.o rsmu_i2c.o -rsmu-spi-objs := rsmu_core.o rsmu_spi.o -obj-$(CONFIG_MFD_RSMU_I2C) += rsmu-i2c.o -obj-$(CONFIG_MFD_RSMU_SPI) += rsmu-spi.o +obj-$(CONFIG_MFD_RSMU_I2C) += rsmu_i2c.o rsmu_core.o +obj-$(CONFIG_MFD_RSMU_SPI) += rsmu_spi.o rsmu_core.o |