Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp420194ybx; Fri, 1 Nov 2019 05:41:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqyy8V9gnUoCCsS+aUjr/jYntUhooM/7iChElNEbVjMERpuvrX7J5cZt2rDBvOVh3gaIqVNb X-Received: by 2002:a17:906:d972:: with SMTP id rp18mr9577872ejb.179.1572612071203; Fri, 01 Nov 2019 05:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572612071; cv=none; d=google.com; s=arc-20160816; b=uqZa1L4CNoB7xS2Qgqp20nSAYCiyIgVC0vhAvP+mCMR0qqMddEBv7pUlPExqxMaBVF OChLVG3XzB0Dpl56vIuy0onjaSfeYXhZCER0LWc2nmpxIaq71XnBLGd8gC2hs0jaloEm BzYdayEU50A7u492l3yyAn0zYlbtvCQFgXie07ZNOMKbvwPIgfgBEDQ3+9GMIKaFRpaq RXXWkwE2F9L6lJcfqq1erckb7vmywexfwYfjItsYW4v8OjHfrb/Q00lbMzoNeR3wGlpA E6yDilPFndw86AEkfQYH3JcZ+FnkAxNGR0WTR5sF7l6B8ZleCc9a1fdAJB/rpBStCMsp 3Q8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=v2OEhUt1Q5DjWbRY/ukSA2ISzuN5HR8Asj5+S9oagZM=; b=hp0CUXwosjZc1CG3u8BL92+P7XdPAECss4aG5NZ+jZQYnNmeIt6DISMPr3muexr3k/ 2HK3PQKi8GDtnHm3V/bV3CkSOYSE3Uir+XUBgO79dVNd0D5aDF/juGYoCkA35xogTGV0 YN4pQKbcKpmCiZ5FQIs+OIDi1+RQCR0JdPwMmk2yZ4CeNJVCAVRFqoA/RIl1zistU5mb 4FA5RbZZIq0HfgKdO5xjVCRFqo1m2L+3RvgdrElEq0utB1s/tbHL6jqrax86iVFUAMf0 V3xXPjhmqWWhqUHUAH9XkUmhroBBUutfV3XLQHnrLy3N22CMxItJP0kNFaGhEmXqxv4T W3Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=TYba00YO; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4si5427755ejb.386.2019.11.01.05.40.47; Fri, 01 Nov 2019 05:41:11 -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=fail header.i=@gmail.com header.s=20161025 header.b=TYba00YO; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730617AbfKAMRn (ORCPT + 99 others); Fri, 1 Nov 2019 08:17:43 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:55486 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730602AbfKAMRl (ORCPT ); Fri, 1 Nov 2019 08:17:41 -0400 Received: by mail-wm1-f65.google.com with SMTP id g24so9149725wmh.5; Fri, 01 Nov 2019 05:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=v2OEhUt1Q5DjWbRY/ukSA2ISzuN5HR8Asj5+S9oagZM=; b=TYba00YOKm1UNoOABodWOurGOD9XySUI/ls9tCevPpKRV7+m/5LdsHgok0jXxvBnMa cGvdmuq4fuSQgqkNQlDSxk64J/nYtdYGW3o0F8A/416GZbXYKPq1tsg21tnAhjkyZ3Op nfnwUKSYU8jA/cuYZO/c0Z/L8edoNsb9knRgANvsQSDcBrVKbwMyfdIwPFQEj+KLWDh1 9gLXFUdcWRFZWxCtH9H++l8LfStDKp7amRgqExGCfEBNQhh4L1eYFurjZHtuZKj0wmiF mYqMNzVYqsPIbupviWGdk4zvcXq+bZBlFNOSKY5Xz7saMtSQttZ33Z30i+nLnz4i+ePN uvYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=v2OEhUt1Q5DjWbRY/ukSA2ISzuN5HR8Asj5+S9oagZM=; b=ZmIzkq+fikq7BhPIyWYM7li8duADJ68k6tefCF/PE47G6xXH/arAPeTe7nC1Oha0kG jsa2v3TgNcwTs1DwGY7cC8m+BqlnP6c/LrlAyAJEliqpOxMPg8GQsk/gr72BKGwGVJ2+ Uh4eG2VDWaJmj0+1OqjIlOkYCGeGlHfWpFvJcdVUXPsORhGaQOChAvW06wnvdTLQsMwI O6ylP5/5HU1+AwJMBb/UgdXO0J6fDY6hyF0fM8pp1Lnt4bcpyU86U75BrAuFzZqF0lxi l90Y3dpuTJ7JyM6SBzjHtstL+BZkaKGnUYrCM28KiieXAgfff03fVfYDR7B9Ey/llc1V HnlA== X-Gm-Message-State: APjAAAUhYaE6FCfdjOOkQYxODPdLTE4YAwZB8yPmgKYjVA9WO43Eb5ab 9cdxNieFIdOkhyjkUcCIHkE= X-Received: by 2002:a1c:ed0e:: with SMTP id l14mr9874673wmh.102.1572610658879; Fri, 01 Nov 2019 05:17:38 -0700 (PDT) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.gmail.com with ESMTPSA id u21sm6263928wmj.22.2019.11.01.05.17.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2019 05:17:38 -0700 (PDT) From: Chuhong Yuan Cc: "David S . Miller" , Heiko Stuebner , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Chuhong Yuan Subject: [PATCH] net: ethernet: arc: add the missed clk_disable_unprepare Date: Fri, 1 Nov 2019 20:17:25 +0800 Message-Id: <20191101121725.13349-1-hslester96@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The remove misses to disable and unprepare priv->macclk like what is done when probe fails. Add the missed call in remove. Signed-off-by: Chuhong Yuan --- drivers/net/ethernet/arc/emac_rockchip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/arc/emac_rockchip.c b/drivers/net/ethernet/arc/emac_rockchip.c index 42d2e1b02c44..664d664e0925 100644 --- a/drivers/net/ethernet/arc/emac_rockchip.c +++ b/drivers/net/ethernet/arc/emac_rockchip.c @@ -256,6 +256,9 @@ static int emac_rockchip_remove(struct platform_device *pdev) if (priv->regulator) regulator_disable(priv->regulator); + if (priv->soc_data->need_div_macclk) + clk_disable_unprepare(priv->macclk); + free_netdev(ndev); return err; } -- 2.23.0