Prev: [PATCH 4/5] drivers/mmc/host/msm-sdcc: Remove dead config options
Next: drivers/regulator: Remove dead CONFIG_TWL4030_ALLOW_UNSUPPORTED
From: Christian Dietrich on 14 Jul 2010 10:10 CONFIG_TWL4030_MADC{,_MODULE} doesn't exist in Kconfig and is never defined anywhere else, therefore removing all references for it from the source code. Signed-off-by: Christian Dietrich <qy03fugy(a)stud.informatik.uni-erlangen.de> --- drivers/mfd/twl-core.c | 14 -------------- 1 files changed, 0 insertions(+), 14 deletions(-) diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c index 720e099..d8c7ae2 100644 --- a/drivers/mfd/twl-core.c +++ b/drivers/mfd/twl-core.c @@ -77,12 +77,6 @@ #define twl_has_regulator() false #endif -#if defined(CONFIG_TWL4030_MADC) || defined(CONFIG_TWL4030_MADC_MODULE) -#define twl_has_madc() true -#else -#define twl_has_madc() false -#endif - #ifdef CONFIG_TWL4030_POWER #define twl_has_power() true #else @@ -600,14 +594,6 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features) return PTR_ERR(child); } - if (twl_has_madc() && pdata->madc) { - child = add_child(2, "twl4030_madc", - pdata->madc, sizeof(*pdata->madc), - true, pdata->irq_base + MADC_INTR_OFFSET, 0); - if (IS_ERR(child)) - return PTR_ERR(child); - } - if (twl_has_rtc()) { /* * REVISIT platform_data here currently might expose the -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |