Received: by 10.223.185.116 with SMTP id b49csp1121322wrg; Fri, 23 Feb 2018 12:17:49 -0800 (PST) X-Google-Smtp-Source: AH8x226p+rqvHEdj8iE3MZGW818U6nhXrtfrgNloI4KGx7YB1OL/JyAZsv83o0hzdlc5mk4uczdR X-Received: by 2002:a17:902:48:: with SMTP id 66-v6mr2698908pla.288.1519417069314; Fri, 23 Feb 2018 12:17:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519417069; cv=none; d=google.com; s=arc-20160816; b=fGbBBkti/MpcZcr/wdlUOY3dLhhlaYtGxd1+5pBPqVb6PGvuf/km21TveDK/eY6x41 7YsOAeqSx4MwDQ20+PuDNNXKrBEDcIK6LJ2HuNvwqBrSfflLIe/ARVtlZUjHJPJot7RL EJpd2RYwXa4O2OXgVq2iP8jiScmGREBfplbunaErUGDlv4kjpOVgYHji+DA3urq5/LH2 PS3oerpaDikoJj3kYAWwOG61B+1Abnd2UeWo3ch7zVfSFWoy5O06xPbPDUR70YpG13Kr szEsHAQj4Q9IWAbujEKnoklayHcB6XcxE1dpVICRP1S2bajjvekD+ny53CICCH3HOtK4 dnwQ== 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=FLEDddNFq5n5MQbXVBIuGUbQY1+Bysmsdu77RwlElVs=; b=L43HvEKAeiXlfOcGuT5qZdhJiugLKpCEIqSpaC0CBetwtFFpVProg+P6OCbSafu3OD m39l4wEoYdzncQGY48ZwAU9z3HHwZUUp+q8cQEchEnc21tgQ6uW/G/5GTRW1ONmcyIYy mmIzf/1v5AXFomlcxDViBQ/Q7lcVC0SU7wHEhOmjCCYMZTifAT1LycZkShzGQl8jjTHF K4AB5ENxcCRT74r/ov6C/m8tAeOsu+uUEjBcUv9wvKAcn/VHB3dcdeWbNOdqL3t8BHxF CL/R05KddFGRVwDe7j4/muen4PaLDEul3dzwOKkk1bibJkOTfwi8P4FCq09SMfhayQE7 KK2g== 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 v27si2318077pfa.387.2018.02.23.12.17.35; Fri, 23 Feb 2018 12:17:49 -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 S932595AbeBWSkT (ORCPT + 99 others); Fri, 23 Feb 2018 13:40:19 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39936 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754425AbeBWSkQ (ORCPT ); Fri, 23 Feb 2018 13:40:16 -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 00C181182; Fri, 23 Feb 2018 18:40:15 +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.4 154/193] usb: phy: msm add regulator dependency Date: Fri, 23 Feb 2018 19:26:27 +0100 Message-Id: <20180223170350.064144126@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170325.997716448@linuxfoundation.org> References: <20180223170325.997716448@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.4-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 @@ -140,6 +140,7 @@ config USB_MSM_OTG tristate "Qualcomm on-chip USB OTG controller support" depends on (USB || USB_GADGET) && (ARCH_QCOM || COMPILE_TEST) depends on RESET_CONTROLLER + depends on REGULATOR depends on EXTCON select USB_PHY help