Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3285312ybb; Tue, 31 Mar 2020 02:06:07 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsnT9Hi6ltYZgVLp98N8TzArZWr9QGKrFre+lwe3/KNAy1FUDHgUP0a1Lb8B0TeXUQhGZ2I X-Received: by 2002:a05:6830:1b64:: with SMTP id d4mr11753891ote.368.1585645567242; Tue, 31 Mar 2020 02:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585645567; cv=none; d=google.com; s=arc-20160816; b=GOd7c1SWS6lcIaxoxa0/J8Oi0Cb5qt74Gs0QH9/jt8z8M0zoBEoeMV29vO9My5dNOv jg5b2zcMaszKuxi9w+aNAzGOI3qPnXZgKumDhU2VNDYpXkI2LShrtFJ3OZrz8Mx09DO+ 5IwvC9FPSr3hd+PhnEmQ8xRAVSP+AutJd/dcdlgX0jfkPnIPzrYUm8fc3NbeioX9mnd+ S4vHtFPj/pzN5LsHV0QOnSL5DVVmsIMEf6CZjbLAevjDNXy6c6y1+RZjQx0wOSjP8Ghi oeN+fDYPO4QXARXWmGy3TI5NJOpK68NqBMK9viOuPz2Ym6m5UkSfb4Az5uts4ORyXHwc +/MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IinvuUYVZ0Nk5uGRYqFqoMpd3Y/WpvMsYmGPeLviC3o=; b=AjxZTTHbriohKap53d3WE7asKKaXP43P+YqQqGGsglHLbym7rhTVnOfhdVyjZgt5TL w0z++lSLkvuNY8+27GTo6Wgvkc2fT+wzrsLU65kgehYcQsipwysLjKzis55jLaGI4Jnl AUMtRuQ1gn86rSsQP5c0TAntRoUZHMqaNMTRYWHQeIK9g3dHvulFnp869fB7oEqHm1Ni 98r4jT889ka1CiMPfLV8tkt7qN450sA88m8Xp17olMVCvWpahJlFyaRXsRXojswIUFBX 5H9w6RECxDFx5RVOBXdV9LARzOjHJr8Xv3Y57sgjnciiJyGQ6TrAMZlqZZi2fOWk6JIm nxfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NdfPgfSJ; 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 z9si8401214otj.157.2020.03.31.02.05.55; Tue, 31 Mar 2020 02:06:07 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=NdfPgfSJ; 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 S1730663AbgCaJE4 (ORCPT + 99 others); Tue, 31 Mar 2020 05:04:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:45708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730549AbgCaJEz (ORCPT ); Tue, 31 Mar 2020 05:04:55 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A208520787; Tue, 31 Mar 2020 09:04:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585645495; bh=TBcOzdlkBS4YbY4gK3VVWnQ8aiNxZfo4NGJlloFDJbs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NdfPgfSJBPuG82tbzWBrvz0OIeL95iPN+5G9K71EtSfyj47CFapdPCP8GIdJ4m9Wk 0tT5zMoZ2AYjf7ASTDqlPVXGMHGuT/IfsceiKI6B41vBx+mvstbxd7lPGTr0bpGe0u MpA+JpM5AM9Gj2SSAkdJtfoi9XphnN0ul7gxJy4M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Emil Renner Berthing , "David S. Miller" Subject: [PATCH 5.5 032/170] net: stmmac: dwmac-rk: fix error path in rk_gmac_probe Date: Tue, 31 Mar 2020 10:57:26 +0200 Message-Id: <20200331085427.470541620@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200331085423.990189598@linuxfoundation.org> References: <20200331085423.990189598@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Emil Renner Berthing [ Upstream commit 9de9aa487daff7a5c73434c24269b44ed6a428e6 ] Make sure we clean up devicetree related configuration also when clock init fails. Fixes: fecd4d7eef8b ("net: stmmac: dwmac-rk: Add integrated PHY support") Signed-off-by: Emil Renner Berthing Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c @@ -1411,7 +1411,7 @@ static int rk_gmac_probe(struct platform ret = rk_gmac_clk_init(plat_dat); if (ret) - return ret; + goto err_remove_config_dt; ret = rk_gmac_powerup(plat_dat->bsp_priv); if (ret)