android_kernel_oneplus_msm8998/drivers/usb/phy
Arnd Bergmann 18e5cdf6f4 usb: phy: msm add regulator dependency
On linux-4.4 and linux-4.9 we get a warning about an array that is
never initialized when CONFIG_REGULATOR is disabled:

drivers/usb/phy/phy-msm-usb.c: In function 'msm_otg_probe':
drivers/usb/phy/phy-msm-usb.c:1911:14: error: 'regs[0].consumer' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  motg->vddcx = regs[0].consumer;
  ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
drivers/usb/phy/phy-msm-usb.c:1912:14: error: 'regs[1].consumer' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  motg->v3p3  = regs[1].consumer;
  ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
drivers/usb/phy/phy-msm-usb.c:1913:14: error: 'regs[2].consumer' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  motg->v1p8  = regs[2].consumer;

This adds a Kconfig dependency for it. In newer kernels, the driver no
longer exists, so this is only needed for stable kernels.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-25 11:03:51 +01:00
..
am35x-phy-control.h
Kconfig usb: phy: msm add regulator dependency 2018-02-25 11:03:51 +01:00
Makefile usb: phy: qcom: New APQ8016/MSM8916 USB transceiver driver 2015-07-29 09:59:19 -05:00
of.c usb: phy: fixed comment typo 2015-03-11 10:19:36 -05:00
phy-ab8500-usb.c Merge 4.1-rc7 into usb-next 2015-06-08 10:57:51 -07:00
phy-am335x-control.c USB: phy: am335x-control: fix device and of_node leaks 2017-01-12 11:22:47 +01:00
phy-am335x.c
phy-fsl-usb.c usb: phy: phy-fsl-usb: Remove some unused functions 2015-01-12 12:13:29 -06:00
phy-fsl-usb.h
phy-generic.c usb: phy: phy-generic: Fix reset behaviour on legacy boot 2015-09-14 10:15:08 -05:00
phy-generic.h usb: phy: generic: add vbus support 2015-01-12 12:13:29 -06:00
phy-gpio-vbus-usb.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
phy-isp1301-omap.c usb: phy: isp1301: work around tps65010 dependency 2015-04-27 14:45:14 -05:00
phy-isp1301.c usb: phy: isp1301: Add OF device ID table 2017-12-20 10:04:52 +01:00
phy-keystone.c usb: phy: phy-keystone: Simplify return statement 2015-08-04 11:02:05 -05:00
phy-msm-usb.c usb: phy: msm: fix error handling in probe. 2016-02-17 12:31:01 -08:00
phy-mv-usb.c usb: phy: mv-usb: fix usb_phy build errors 2015-01-13 09:32:22 -06:00
phy-mv-usb.h
phy-mxs-usb.c usb: phy: mxs: add "fsl,imx6ul-usbphy" compatible string 2015-11-19 14:48:50 -06:00
phy-omap-otg.c usb: phy: omap-otg: fix uninitialized pointer 2015-11-16 10:17:40 -06:00
phy-qcom-8x16-usb.c usb: phy: qcom: Switch to new extcon framework API 2015-09-27 10:54:31 -05:00
phy-rcar-usb.c
phy-tahvo.c usb: phy: tahvo: fix error handling in tahvo_usb_probe() 2017-12-09 18:42:39 +01:00
phy-tegra-usb.c usb: common: of_usb_get_dr_mode to usb_get_dr_mode 2015-09-27 10:54:31 -05:00
phy-twl6030-usb.c
phy-ulpi-viewport.c
phy-ulpi.c
phy.c usb: phy: Add interface to get phy give of device_node. 2015-05-26 10:42:28 -05:00