Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp22183pxb; Fri, 15 Jan 2021 04:56:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIXVlo94u1Rhbqa3W0pTQ3wAWrE36MXarHDmikbKx2sT/nFpXusU8+j5bUhGT8EKmzwkw+ X-Received: by 2002:a05:6402:352:: with SMTP id r18mr9273560edw.373.1610715404833; Fri, 15 Jan 2021 04:56:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610715404; cv=none; d=google.com; s=arc-20160816; b=CmDN2VtOLn5kGm6qtn3CK5YBb+ZfFe5u5Npu6bbS9/BFGjXt7M+OZ6PzL3bu7+xm9V n9XmBuuF0mX0xhh1+pJGNOSMzyJDvdNsN0jIbCTncc5H64bsgU/H0KjRWFthImQ1gdPR SV5eUiDDVfJoHY/KB5aXusxktvns+7B8mygVrJsjx3/7V9P+7JP2T8AylJdmFsfj8WeJ 8L5TPqdbchBhxyC0m8seVC7Aq7dlgdNrRKHmoUoBx6iKr7UQ2SD02NxBwBi9uCUDESYM FbPjLtyM5YPYBUg6ZQAFY2yuvOLEX2r7lDuDyX/1+BXEYr4JiX9qAs87/j9mbBUALA+0 4pLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZzOz3IxocnBej4QZ/WM5FamyMaPcTVzJvzN4A9ndD6M=; b=gwsx4pxiHJECTXYiExEEdw7BRhRO1DxRpMKt+bT5dGqtB5srnjZMKWKEn3Ut3S0gF0 xnDELp2J3lGjlTyZh4fRGRDGv2zNi4KdZtTAe868I1qYae7Vm3lHupPpVI1TC/rsLOAr 5uZrstVAhqkStVUgqWQzlUkm0odJfRxQoGDofY/hCXMmvsiew4dNYD5mFxmmqh/T/zdA grEtlIWR9Y+cM5s6NXOar7f9B3aqjewF2Mlpp7i74rRBuTrBqrfSJe7CwBuUyEfdQIf/ 3GaxSDgC1JBZ71hGt668nE3qHGNpONPQD51NymNg1W4o+T5mYT+JPMg3Ys7NLmCDyfyK +YFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="f/JCSH/y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t5si3920029edw.52.2021.01.15.04.56.21; Fri, 15 Jan 2021 04:56:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="f/JCSH/y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733073AbhAOMzT (ORCPT + 99 others); Fri, 15 Jan 2021 07:55:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:42472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387643AbhAOMfV (ORCPT ); Fri, 15 Jan 2021 07:35:21 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8B1B823136; Fri, 15 Jan 2021 12:34:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1610714081; bh=DXpiEc4h0HVA5+YwnioI9uEatc1ccXvj7bk9fvpLlrc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f/JCSH/yZzCKovKAWjcDghj9JzL4NOt1ynnAzPmE6+89vrPJx9NN/lX93JUBTTPYr 3Y1pi8E7HRv5HmZS8vDKDNJADTUJeB6qRLP+7URpS8SerW2N/7dzCTmn4mLrjRg8Tz FS3Qlk6wyPypZUFmMTomay81MvA7ZyTYA5rFZiD0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Murphy , Sriram Dash , Sean Nyekjaer , Marc Kleine-Budde Subject: [PATCH 5.4 37/62] can: m_can: m_can_class_unregister(): remove erroneous m_can_clk_stop() Date: Fri, 15 Jan 2021 13:27:59 +0100 Message-Id: <20210115122000.190143068@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210115121958.391610178@linuxfoundation.org> References: <20210115121958.391610178@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marc Kleine-Budde commit c4aec381ab98c9189d47b935832541d520f1f67f upstream. In m_can_class_register() the clock is started, but stopped on exit. When calling m_can_class_unregister(), the clock is stopped a second time. This patch removes the erroneous m_can_clk_stop() in m_can_class_unregister(). Fixes: f524f829b75a ("can: m_can: Create a m_can platform framework") Cc: Dan Murphy Cc: Sriram Dash Reviewed-by: Sean Nyekjaer Link: https://lore.kernel.org/r/20201215103238.524029-2-mkl@pengutronix.de Signed-off-by: Marc Kleine-Budde Signed-off-by: Greg Kroah-Hartman --- drivers/net/can/m_can/m_can.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/net/can/m_can/m_can.c +++ b/drivers/net/can/m_can/m_can.c @@ -1868,8 +1868,6 @@ void m_can_class_unregister(struct m_can { unregister_candev(m_can_dev->net); - m_can_clk_stop(m_can_dev); - free_candev(m_can_dev->net); } EXPORT_SYMBOL_GPL(m_can_class_unregister);