[Android] Pavlex4:
What to do?

I want to enable 5v for usb otg.I don't know which regulator to chose.

When I run command make -j3 I get error:

scripts/kconfig/conf --silentoldconfig Kconfig

sound/soc/codecs/audience/Kconfig:40:warning: type of 'SND_SOC_ES_SLIM' redefined from 'boolean' to 'tristate'

sound/soc/codecs/audience/Kconfig:43:warning: type of 'SND_SOC_ES_I2C' redefined from 'boolean' to 'tristate'

sound/soc/codecs/audience/Kconfig:44:warning: choice value used outside its choice group

sound/soc/codecs/audience/Kconfig:41:warning: choice value used outside its choice group

warning: (SND_SOC_MSM8226) selects DOLBY_DAP which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_MSM8974)

warning: (SND_SOC_MSM8226) selects DOLBY_DAP which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_MSM8974)

CHK include/linux/version.h

CHK include/generated/utsrelease.h

make[1]: Nothing to be done for 'arch/arm/boot/dtbs'.

make[1]: 'include/generated/mach-types.h' is up to date.

CALL scripts/checksyscalls.sh

CHK include/generated/compile.h

CC arch/arm/mach-msm/board-dt.o

CC arch/arm/mach-msm/sec-switch.o

LD drivers/base/regmap/built-in.o

LD drivers/base/built-in.o

arch/arm/mach-msm/sec-switch.c:818:16: error: redefinition of 'midas_switch_show_vbus'

arch/arm/mach-msm/sec-switch.c:226:16: note: previous definition of 'midas_switch_show_vbus' was here

arch/arm/mach-msm/sec-switch.c:838:16: error: redefinition of 'midas_switch_store_vbus'

arch/arm/mach-msm/sec-switch.c:246:16: note: previous definition of 'midas_switch_store_vbus' was here

arch/arm/mach-msm/sec-switch.c:884:1: error: redefinition of 'dev_attr_disable_vbus'

arch/arm/mach-msm/sec-switch.c:292:1: note: previous definition of 'dev_attr_disable_vbus' was here

arch/arm/mach-msm/sec-switch.c:940:21: error: redefinition of 'sec_booster'

arch/arm/mach-msm/sec-switch.c:348:21: note: previous definition of 'sec_booster' was here

arch/arm/mach-msm/sec-switch.c:946:19: error: redefinition of 'midas_sec_switch_init'

arch/arm/mach-msm/sec-switch.c:354:19: note: previous definition of 'midas_sec_switch_init' was here

arch/arm/mach-msm/sec-switch.c:983:5: error: redefinition of 'current_cable_type'

arch/arm/mach-msm/sec-switch.c:391:5: note: previous definition of 'current_cable_type' was here

arch/arm/mach-msm/sec-switch.c: In function 'max77804k_muic_mhl_cb':

arch/arm/mach-msm/sec-switch.c:1235:18: error: 'MAX77804K_MUIC_ATTACHED' undeclared (first use in this function)

arch/arm/mach-msm/sec-switch.c:1235:18: note: each undeclared identifier is reported only once for each function it appears in

arch/arm/mach-msm/sec-switch.c: At top level:

arch/arm/mach-msm/sec-switch.c:1348:8: error: variable 'max77804k_muic' has initializer but incomplete type

arch/arm/mach-msm/sec-switch.c:1349:2: error: unknown field 'usb_cb' specified in initializer

arch/arm/mach-msm/sec-switch.c:1349:2: warning: excess elements in struct initializer [enabled by default]

error, forbidden warning: sec-switch.c:1349

scripts/Makefile.build:307: recipe for target 'arch/arm/mach-msm/sec-switch.o' failed

make[1]: *** [arch/arm/mach-msm/sec-switch.o] Error 1

Makefile:950: recipe for target 'arch/arm/mach-msm' failed

make: *** [arch/arm/mach-msm] Error 2

make: *** Waiting for unfinished jobs....

CC sound/soc/codecs/wcd9306.o

CC sound/soc/codecs/wcd9306-tables.o

CC sound/soc/codecs/wcd9xxx-resmgr.o

LD drivers/gpio/built-in.o

CC sound/soc/codecs/wcd9xxx-mbhc.o

LD drivers/leds/built-in.o

LD drivers/input/touchscreen/built-in.o

LD drivers/input/built-in.o

LD sound/soc/codecs/snd-soc-wcd9306.o

LD sound/soc/codecs/snd-soc-msm-stub.o

LD sound/soc/codecs/built-in.o

CC sound/soc/msm/msm8226.o

CC drivers/mfd/sm501.o

CC drivers/misc/max77888-muic.o

CC sound/soc/msm/qdsp6v2/msm-dai-q6-v2.o

CC drivers/mfd/tps65010.o

CC drivers/mfd/twl-core.o

LD sound/soc/msm/qdsp6v2/snd-soc-qdsp6v2.o

CC drivers/misc/max77828-muic.o

LD sound/soc/msm/qdsp6v2/built-in.o

CC drivers/mfd/twl4030-irq.o

LD sound/soc/msm/snd-soc-qdsp6v2.o

LD sound/soc/msm/snd-soc-msm8226.o

LD sound/soc/msm/snd-soc-hostless-pcm.o

LD sound/soc/msm/built-in.o

CC drivers/mfd/twl6030-irq.o

LD sound/soc/built-in.o

LD sound/built-in.o

CC drivers/mfd/twl4030-madc.o

LD drivers/misc/built-in.o

drivers/misc/max77828-muic.o: In function `get_switch_sel':

/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77828-muic.c:223: multiple definition of `get_switch_sel'

drivers/misc/max77888-muic.o:/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77888-muic.c:205: first defined here

drivers/misc/max77828-muic.o: In function `powered_otg_control':

/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77828-muic.c:1854: multiple definition of `powered_otg_control'

drivers/misc/max77888-muic.o:/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77888-muic.c:1951: first defined here

drivers/misc/max77828-muic.o: In function `muic_otg_control':

/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77828-muic.c:1845: multiple definition of `muic_otg_control'

drivers/misc/max77888-muic.o:/home/toor/Desktop/GT-I9301I_KK_Opensource/Kernel/drivers/misc/max77888-muic.c:1942: first defined here

CC drivers/mfd/twl4030-power.o

scripts/Makefile.build:375: recipe for target 'drivers/misc/built-in.o' failed

make[2]: *** [drivers/misc/built-in.o] Error 1

scripts/Makefile.build:443: recipe for target 'drivers/misc' failed

make[1]: *** [drivers/misc] Error 2

make[1]: *** Waiting for unfinished jobs....

CC drivers/mfd/ezx-pcap.o

CC drivers/mfd/wcd9xxx-core.o

drivers/mfd/ezx-pcap.c: In function 'pcap_isr_work':

drivers/mfd/ezx-pcap.c:205:2: error: implicit declaration of function 'irq_to_gpio' [-Werror=implicit-function-declaration]

cc1: some warnings being treated as errors

scripts/Makefile.build:307: recipe for target 'drivers/mfd/ezx-pcap.o' failed

make[2]: *** [drivers/mfd/ezx-pcap.o] Error 1

make[2]: *** Waiting for unfinished jobs....

scripts/Makefile.build:443: recipe for target 'drivers/mfd' failed

make[1]: *** [drivers/mfd] Error 2

Makefile:950: recipe for target 'drivers' failed

make: *** [drivers] Error 2