aboutsummaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorPaul Kocialkowski2016-02-27 19:19:11 +0100
committerTom Rini2016-03-15 15:12:56 -0400
commit4986c6c79c5ed682d172e51cb34baaf12478e91f (patch)
tree41b264e4d08ef4c735a9ef088749dd87596178d3 /drivers/power
parentbd55eedc07a7f3811cbbd4e934081b9a915af758 (diff)
power: twl6030: Remove ifdef around the code
The TWL6030 power driver is only built when CONFIG_TWL6030_POWER is selected, thus there is no reason to wrap the code with ifdef. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/twl6030.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/power/twl6030.c b/drivers/power/twl6030.c
index c6d06f19e9b..bfeb34b428a 100644
--- a/drivers/power/twl6030.c
+++ b/drivers/power/twl6030.c
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <config.h>
-#ifdef CONFIG_TWL6030_POWER
#include <twl6030.h>
@@ -262,4 +261,3 @@ void twl6030_usb_device_settings()
value &= ~TWL6030_MISC2_VUSB_IN_PMID;
twl6030_i2c_write_u8(TWL6030_CHIP_PM, TWL6030_MISC2, value);
}
-#endif