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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 70529C433FE for ; Fri, 30 Sep 2022 06:46:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=v7xP9x5cdL/xZkbcU4RsyE3yfbR1eibofdND7pTzokI=; b=i4w0ScMxjWiU5D u451QBjiQaSlXahRYNqFrn1lnLT59LF2uhdHByXwqbNy/U4RpFnCw35G/mpUK4DaY+c+RudMYP91V ECAS19tSENLGbZhyYYpMkErPdNjtOEJxKYsOMzlWoaZ+pG/3HjjZp/Q88UrwBtgXoz+A4ks6Bi5jr hBZULI5dsJT+0JJWJYSg0u0j3doi4V9WKhbVaWAsVeEiKh2OazeOLarx6OzYloWuUm1jrP9pI2Qgh 3o0l6yoSt1sORMEc4U8YTpqch6t/+wmUKr0cFpL4x7sgXfHCb9j0mi3QKTcECftHMgyFfa/gZhdGm HjkHnchZ2jgEwXZN+R2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oe9lS-007aT8-Dg; Fri, 30 Sep 2022 06:44:50 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oe9l1-007aFW-BV for linux-arm-kernel@lists.infradead.org; Fri, 30 Sep 2022 06:44:25 +0000 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 28TMFQrS032683; Fri, 30 Sep 2022 08:44:18 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=9FBWWV7NRaIlhR/ZrDm89skl4xGYlNJnBs4u8bfDeco=; b=2LD8VO5YgprJgk30n/4CipfmNwd2Ntuh8tVepNSZ9+MczZzAx1DdaKE+SykwdrxYYV7S AiOAN+2uNG7vB/neurMDO70rJbrlnw9JJBi9AD+Z2SeNc+yFMHoKoUY9nnErP3rlhRWD uywBeSA5ievhbC0JnTG9DIdrUYe/JBdhsdfxVR3cg2Cxq6Sr6qDwbrDWjC++2GY6cOhB NZHR/HG/M4dnFjCSGGgg5QUOLbKezeUPFfYPUKfkL3pSS22VMEQexPK9SN9r5lL0gZQJ +5NnIGLc0NP9wyVzsq2izMhxre5Aw5PL+pbPmy/SYgDvXVQ1UmqXENYGaERMxxW2HFQ5 sA== 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 3jsqamv6d2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Sep 2022 08:44:17 +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 03EA710002A; Fri, 30 Sep 2022 08:44:16 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id EEAB62132D1; Fri, 30 Sep 2022 08:44:16 +0200 (CEST) Received: from localhost (10.75.127.44) 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.2375.31; Fri, 30 Sep 2022 08:44:16 +0200 From: To: Felipe Balbi , Greg Kroah-Hartman , , , CC: , Jerome Audu Subject: [PATCH] usb: dwc3: st: Rely on child's compatible instead of name Date: Fri, 30 Sep 2022 08:44:06 +0200 Message-ID: <20220930064406.510330-1-patrice.chotard@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-30_03,2022-09-29_03,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220929_234423_725053_C78B3835 X-CRM114-Status: GOOD ( 16.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Patrice Chotard To ensure that child node is found, don't rely on child's node name which can take different value, but on child's compatible name. Cc: Jerome Audu Signed-off-by: Patrice Chotard --- drivers/usb/dwc3/dwc3-st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-st.c b/drivers/usb/dwc3/dwc3-st.c index 166b5bde45cb..fea5290de83f 100644 --- a/drivers/usb/dwc3/dwc3-st.c +++ b/drivers/usb/dwc3/dwc3-st.c @@ -251,7 +251,7 @@ static int st_dwc3_probe(struct platform_device *pdev) /* Manage SoftReset */ reset_control_deassert(dwc3_data->rstc_rst); - child = of_get_child_by_name(node, "dwc3"); + child = of_get_compatible_child(node, "snps,dwc3"); if (!child) { dev_err(&pdev->dev, "failed to find dwc3 core node\n"); ret = -ENODEV; -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel