From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B097AC433EF for ; Fri, 6 May 2022 06:22:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BFEDB84093; Fri, 6 May 2022 08:22:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foss.st.com header.i=@foss.st.com header.b="aYe6gK/r"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6DAA980138; Fri, 6 May 2022 08:22:45 +0200 (CEST) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 18F0A84099 for ; Fri, 6 May 2022 08:22:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=1125d813c6=patrice.chotard@foss.st.com Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24605NIw018215; Fri, 6 May 2022 08:22:39 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=m1N1NBcaSoBmIpx20hlMkoabWJkgBZCsZ5Pj1/sB7CA=; b=aYe6gK/rY1YMjFMAa21GfxiWLYpOUawwbAtjqiGmDXaJcaI2S7EYJyq/y2WNOC0ix8Vo 0ouQgSA0S5R7xKrLr9rIabyJFPEWsub593UraZcjGXlYUVwRWaTau11Q7/pxhBiL0l3W DZUTWfpQbPysbyecRdjWZSkeyn9y0Y1IGW1n8q8si9PfYTDW6jQq5gSCWO6WIwVwKxhC wmP/MS7pA95vKVs6nYUT/45PRjC0+uqZvipUlfaw5MiEQ99XOsSyBGmj3pGBb9P7SiMv HpEyfoHDCkyGzDu1vPj5bK0ZsMdazooNWG5AnP0ZotPmVpXTLiIK8a29zGZa/eRDaimo Eg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3frthk6ayx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 06 May 2022 08:22:39 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B4D4A10002A; Fri, 6 May 2022 08:22:38 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id AF277210F88; Fri, 6 May 2022 08:22:38 +0200 (CEST) Received: from localhost (10.75.127.47) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Fri, 6 May 2022 08:22:37 +0200 From: Patrice Chotard To: CC: Patrice CHOTARD , Patrick DELAUNAY , U-Boot STM32 , Marek Vasut Subject: [PATCH v2 2/2] usb: host: ehci-generic: Remove DM_REGULATOR flag Date: Fri, 6 May 2022 08:22:35 +0200 Message-ID: <20220506082232.v2.2.Ic4641ddc829feecc12b775615bd175f3f35c3ea9@changeid> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220506082232.v2.1.Ia5711b14a17cf1d042bdab9d3f28437d5c53272c@changeid> References: <20220506082232.v2.1.Ia5711b14a17cf1d042bdab9d3f28437d5c53272c@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-06_02,2022-05-05_01,2022-02-23_01 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Since commit 16cc5ad0b439 ("power: regulator: add dummy helper") regulator dummy helper are always available even if DM_REGULATOR is not set. DM_REGULATOR flag is no more needed to protect no DM core, remove it. Signed-off-by: Patrice Chotard --- Changes in v2: - update commit message drivers/usb/host/ehci-generic.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c index 8760169035..4734af0396 100644 --- a/drivers/usb/host/ehci-generic.c +++ b/drivers/usb/host/ehci-generic.c @@ -26,12 +26,9 @@ struct generic_ehci { struct clk_bulk clocks; struct reset_ctl_bulk resets; struct phy phy; -#ifdef CONFIG_DM_REGULATOR struct udevice *vbus_supply; -#endif }; -#ifdef CONFIG_DM_REGULATOR static int ehci_enable_vbus_supply(struct udevice *dev) { struct generic_ehci *priv = dev_get_priv(dev); @@ -62,17 +59,6 @@ static int ehci_disable_vbus_supply(struct generic_ehci *priv) else return 0; } -#else -static int ehci_enable_vbus_supply(struct udevice *dev) -{ - return 0; -} - -static int ehci_disable_vbus_supply(struct generic_ehci *priv) -{ - return 0; -} -#endif static int ehci_usb_probe(struct udevice *dev) { -- 2.25.1