Received: by 10.223.185.116 with SMTP id b49csp1087762wrg; Fri, 23 Feb 2018 11:42:45 -0800 (PST) X-Google-Smtp-Source: AH8x226qxPwrlikaCvc72GrYMuI95gQpowdVXNGelsomPe9ZUxS3DFWScKaxXkreWxFpOpfO1Pa3 X-Received: by 10.98.86.15 with SMTP id k15mr2815247pfb.187.1519414965106; Fri, 23 Feb 2018 11:42:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519414965; cv=none; d=google.com; s=arc-20160816; b=KK4maJAZGuz+SAKdlDZyy2z950ptg1OMwkYKeAZpX3Ri1kzdop0HTrWaKNAKx67WPe 4+OZqIETxkIt9fh2Tr+XWLc+V4qPdRGRJLcozbxOyL2P4HsBnWmpyaSRVx2ygJo7xm8R VLU/uQ3i7RSFX/eeElUMaWxkoadLhD8S/afU//duDNXWgh24MBlAfdW2cB6W+9FZjYGc nHgY7w5qOsgB+tkxfGnrjqf1fAf5PyDAvxVYp/vGjCLhlqURVQOwa+qAwbTSUWS/2hTl YahIIt2WpDJay50OygYnE3ELBb4UrHtmMDCOfHlkhudhFyCF0OpZhn3PGo3quZetXLZL Ut8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=pxQ8sAJQL87f97bfbeZ/iaSM6SXJmRR5LiyKdTBhDhA=; b=Q3psRilJM2OS3COIUc12NUy0KgGfTr6VPFTa2A6Y5kIrTuSYyqnKY/Z0ekTYRBCcXT BjWWkJDJengorJufzpVij3ZnIV+eF8gMBCmM7GI/T8s0JTRzWucQWoFstIoh0gy4oeBN fzZL3KN8usSkA9xWlYOTsKS/bLJgBGuWicck+kbRSAQ+KJwunq2XD5dXvC4UelpQSheV myByd2sD/OZ3x+5NKgFassksMYJcV3m+x4E//Al3JoMDf0XaEFxuIoIkx++myy7EsCRH Pggt1yvT2OW4BAqJNrm/7iOCL2L2vDe+/m9CUP8eef50RCQFXQpl7aOQsnJug3RsXCxi ZpHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13-v6si2233368plz.218.2018.02.23.11.42.30; Fri, 23 Feb 2018 11:42:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934444AbeBWSsl (ORCPT + 99 others); Fri, 23 Feb 2018 13:48:41 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:44974 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934087AbeBWSsh (ORCPT ); Fri, 23 Feb 2018 13:48:37 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8106410C4; Fri, 23 Feb 2018 18:48:36 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Arnd Bergmann Subject: [PATCH 4.9 140/145] usb: phy: msm add regulator dependency Date: Fri, 23 Feb 2018 19:27:26 +0100 Message-Id: <20180223170742.815122912@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170724.669759283@linuxfoundation.org> References: <20180223170724.669759283@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann 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 Signed-off-by: Greg Kroah-Hartman --- drivers/usb/phy/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/drivers/usb/phy/Kconfig +++ b/drivers/usb/phy/Kconfig @@ -147,6 +147,7 @@ config USB_MSM_OTG depends on (USB || USB_GADGET) && (ARCH_QCOM || COMPILE_TEST) depends on USB_GADGET || !USB_GADGET # if USB_GADGET=m, this can't be 'y' depends on RESET_CONTROLLER + depends on REGULATOR depends on EXTCON select USB_PHY help