[PATCH 2/7] mfd: mx13xxx: drop unnecessary ifdefs

Sascha Hauer s.hauer at pengutronix.de
Tue Oct 15 04:10:59 PDT 2024


No need to #ifdef coredevice_i2c_driver and coredevice_spi_driver. These
are noops anyway when the corresponding subsystem is disabled.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/mfd/mc13xxx.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/mfd/mc13xxx.c b/drivers/mfd/mc13xxx.c
index 1e06a24b45..5dabfe3f61 100644
--- a/drivers/mfd/mc13xxx.c
+++ b/drivers/mfd/mc13xxx.c
@@ -396,9 +396,7 @@ static __maybe_unused struct driver mc13xxx_i2c_driver = {
 	.of_compatible	= DRV_OF_COMPAT(mc13xxx_dt_ids),
 };
 
-#if IS_ENABLED(CONFIG_I2C)
 coredevice_i2c_driver(mc13xxx_i2c_driver);
-#endif
 
 static __maybe_unused struct driver mc13xxx_spi_driver = {
 	.name		= "mc13xxx-spi",
@@ -407,6 +405,4 @@ static __maybe_unused struct driver mc13xxx_spi_driver = {
 	.of_compatible	= DRV_OF_COMPAT(mc13xxx_dt_ids),
 };
 
-#if IS_ENABLED(CONFIG_SPI)
 coredevice_spi_driver(mc13xxx_spi_driver);
-#endif

-- 
2.39.5




More information about the barebox mailing list