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> |
||
|---|---|---|
| .. | ||
| am35x-phy-control.h | ||
| Kconfig | ||
| Makefile | ||
| of.c | ||
| phy-ab8500-usb.c | ||
| phy-am335x-control.c | ||
| phy-am335x.c | ||
| phy-fsl-usb.c | ||
| phy-fsl-usb.h | ||
| phy-generic.c | ||
| phy-generic.h | ||
| phy-gpio-vbus-usb.c | ||
| phy-isp1301-omap.c | ||
| phy-isp1301.c | ||
| phy-keystone.c | ||
| phy-msm-usb.c | ||
| phy-mv-usb.c | ||
| phy-mv-usb.h | ||
| phy-mxs-usb.c | ||
| phy-omap-otg.c | ||
| phy-qcom-8x16-usb.c | ||
| phy-rcar-usb.c | ||
| phy-tahvo.c | ||
| phy-tegra-usb.c | ||
| phy-twl6030-usb.c | ||
| phy-ulpi-viewport.c | ||
| phy-ulpi.c | ||
| phy.c | ||