projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd55eed
)
power: twl6030: Remove ifdef around the code
author
Paul Kocialkowski
<contact@paulk.fr>
Sat, 27 Feb 2016 18:19:11 +0000
(19:19 +0100)
committer
Tom Rini
<trini@konsulko.com>
Tue, 15 Mar 2016 19:12:56 +0000
(15:12 -0400)
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>
drivers/power/twl6030.c
patch
|
blob
|
history
diff --git
a/drivers/power/twl6030.c
b/drivers/power/twl6030.c
index c6d06f19e9b15982a45b0873c32d5d2c196ff5e3..bfeb34b428ac3fa144235bbdd6fbc852d0d43434 100644
(file)
--- 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