aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mfd/twl-core.c19
-rw-r--r--include/linux/i2c/twl.h7
2 files changed, 1 insertions, 25 deletions
diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c
index 19a930d0624..d81003f4867 100644
--- a/drivers/mfd/twl-core.c
+++ b/drivers/mfd/twl-core.c
@@ -58,13 +58,6 @@
58 58
59#define DRIVER_NAME "twl" 59#define DRIVER_NAME "twl"
60 60
61#if defined(CONFIG_TWL4030_BCI_BATTERY) || \
62 defined(CONFIG_TWL4030_BCI_BATTERY_MODULE)
63#define twl_has_bci() true
64#else
65#define twl_has_bci() false
66#endif
67
68#if defined(CONFIG_KEYBOARD_TWL4030) || defined(CONFIG_KEYBOARD_TWL4030_MODULE) 61#if defined(CONFIG_KEYBOARD_TWL4030) || defined(CONFIG_KEYBOARD_TWL4030_MODULE)
69#define twl_has_keypad() true 62#define twl_has_keypad() true
70#else 63#else
@@ -588,18 +581,6 @@ add_children(struct twl4030_platform_data *pdata, unsigned long features)
588 struct device *child; 581 struct device *child;
589 unsigned sub_chip_id; 582 unsigned sub_chip_id;
590 583
591 if (twl_has_bci() && pdata->bci &&
592 !(features & (TPS_SUBSET | TWL5031))) {
593 child = add_child(3, "twl4030_bci",
594 pdata->bci, sizeof(*pdata->bci),
595 false,
596 /* irq0 = CHG_PRES, irq1 = BCI */
597 pdata->irq_base + BCI_PRES_INTR_OFFSET,
598 pdata->irq_base + BCI_INTR_OFFSET);
599 if (IS_ERR(child))
600 return PTR_ERR(child);
601 }
602
603 if (twl_has_gpio() && pdata->gpio) { 584 if (twl_has_gpio() && pdata->gpio) {
604 child = add_child(SUB_CHIP_ID1, "twl4030_gpio", 585 child = add_child(SUB_CHIP_ID1, "twl4030_gpio",
605 pdata->gpio, sizeof(*pdata->gpio), 586 pdata->gpio, sizeof(*pdata->gpio),
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h
index 7897f309656..9733e9e53f2 100644
--- a/include/linux/i2c/twl.h
+++ b/include/linux/i2c/twl.h
@@ -605,12 +605,7 @@ int twl4030_sih_setup(int module);
605#define TWL4030_VAUX3_DEV_GRP 0x1F 605#define TWL4030_VAUX3_DEV_GRP 0x1F
606#define TWL4030_VAUX3_DEDICATED 0x22 606#define TWL4030_VAUX3_DEDICATED 0x22
607 607
608#if defined(CONFIG_TWL4030_BCI_BATTERY) || \ 608static inline int twl4030charger_usb_en(int enable) { return 0; }
609 defined(CONFIG_TWL4030_BCI_BATTERY_MODULE)
610 extern int twl4030charger_usb_en(int enable);
611#else
612 static inline int twl4030charger_usb_en(int enable) { return 0; }
613#endif
614 609
615/*----------------------------------------------------------------------*/ 610/*----------------------------------------------------------------------*/
616 611