Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2583624lqp; Mon, 25 Mar 2024 03:31:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUiPLEebs9DgQDJuovYgfPfqgGQDCVTObxtkjaf0ps5C4MLKEHBOFIOE4MtT4w04gIGEgJGG7UVpXBl06/dMBSfiqL+gv4+iCviJkw8Yg== X-Google-Smtp-Source: AGHT+IFoMbCZfGeyAazVeLQ7KWrTp5PnBdsSZKZdAZHhnlCwQWMbHleVojW1H6ABW8YLgN7CvYQF X-Received: by 2002:a05:6a20:9a:b0:1a3:3c5f:2ebd with SMTP id 26-20020a056a20009a00b001a33c5f2ebdmr4972590pzg.59.1711362709397; Mon, 25 Mar 2024 03:31:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711362709; cv=pass; d=google.com; s=arc-20160816; b=MY+BFUa+KmhDP/cIGBk9I+XC/rvkRmH1laHwTpWGSBcTw+qWFq03o2XJFHnhM9dfW6 IMNCDh4iF5kv/3KXkolS2zWI71YItAXVMb0D3Jb7gcKHS2gnUJjtQItEFiUpHdPyTDpn R8gibfZKq8tzLkQFwbfkVJrXbw7/tPFi6errEFDuHPyEBNbjYeUeb0qK3bdH4Rm2zZtD fUNPn7jZnU3X/swAke/yVobuqYds0+qHWiR7LYDE3NHj0v+YYvNyo09JOwaiw+xrcBVR V4gTlTVb+4dYL5kteck96K6yeFc2/jJjSW3TUoacA24EcucTQojZFv/jZ0bOHIEvwOrK J5mQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=/XSJI5khxbbxucUqr6glfxezQZMXEQo3QQ3+98SqG7w=; fh=cunHmaVkcaWwqL/4bGMp9q/6j6ZRrAqC7AwAV7TeES8=; b=Pk1Pn/mFOXqT0UoDA7Wam1/XijDSXwqEqDF5Yy4UVaPwzZoxecmoBL+ONDKeZBMEIw 42EWgtAzGwRVuEf9Bbww0En1pbcj+6BFv/dOEh8R4MGjBt9cco6J/+BXA8n+JY9RIIqm 1WgC3/JjTAZAUG7OX0iDW5qdmTSNUp5/f0lZj4mu1e1rHy4fDlkyWOXv+lHpWYQnS2xQ CPnEc4cIlVqwgRrGu3GZWBQWNk9vTwSzCt++2hFEaiXm+ia1ceiZQqGJ79/z2LB4BG93 sani6biPJoa2wsQerLe33mvkWwOriQBpcjSjnXml6Y+5RLpMbyidn7lGNxd2qV09MjgQ y71Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jGk4JSE6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116149-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k5-20020a170902d58500b001e0afe33809si3640913plh.96.2024.03.25.03.31.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 03:31:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116149-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jGk4JSE6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116149-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 405012A2B6A for ; Mon, 25 Mar 2024 10:15:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47C1B182EF3; Mon, 25 Mar 2024 03:32:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jGk4JSE6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E84401311AC; Sun, 24 Mar 2024 23:41:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323707; cv=none; b=Js4uBBwhOoI9JzwVSiWAGy6ZdR4pO70alZ8MOd3wSR7pH8pYmtZulaH53mR7CvHjIvxKS4CZY8JkRSTZh27RiykuldXA6F7ETiJVJCFgvUxjku6NMixVo9+EDeyYUbQjt6odVGd9cFMdm5Qox5nqepxbXISTMSDNRFNASPsJ1b0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323707; c=relaxed/simple; bh=KUcareWsI1VAdK+DJxxdVOXWGUo+3jqHf8bnKxBeUQA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VU+gZUMlvdZ9rQKXeMXx6qzQ6VtJGg+aarG+lIJxBng2YyTeZZLmJUcFgQ9nvjSpYfP+wuOsHlVN45oVKR3n/F5u8QkOtCw/UCna5w4j9rxrQf2cVwjRup5DDGo21jMa9DBeXB3lO9hF0DMeCmqMaOYIidm3EiV1avjJhU2lyqU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jGk4JSE6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 331F7C43390; Sun, 24 Mar 2024 23:41:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711323706; bh=KUcareWsI1VAdK+DJxxdVOXWGUo+3jqHf8bnKxBeUQA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jGk4JSE6t7kdHOsqtrN/mMucydP3Lip1ZycXFd/v3kS+TlyC7z20GPN8VBkP8g+xM 17ySZ3rz9l16TJhlWa0SZ3AgF8GdKcs6DlgYRTxoH+fToL4kjzCFCcX/DSW2WUzxil atd+U0OJQIGjsLLs6QJCNwga5YDOhdXSgPPWcBQ3Gz7IfOF+9iEDt4ikFDa4Ac/9px DhOi3pWTCpAN03tRlwk05LQaW5Ty69q5I8McXHy7y7d/92oI4AWwSNQuOcxfP6arBt E+3ifZg3FyotihDSSxFfAhKhtooomGF8KwkHRD57/qrseTXAC+iFwdCdAlnFK+mrVF jDTN8XvK/H6dw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Christophe JAILLET , Ulf Hansson , Sasha Levin Subject: [PATCH 5.10 080/238] mmc: wmt-sdmmc: remove an incorrect release_mem_region() call in the .remove function Date: Sun, 24 Mar 2024 19:37:48 -0400 Message-ID: <20240324234027.1354210-81-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324234027.1354210-1-sashal@kernel.org> References: <20240324234027.1354210-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Christophe JAILLET [ Upstream commit ae5004a40a262d329039b99b62bd3fe7645b66ad ] This looks strange to call release_mem_region() in a remove function without any request_mem_region() in the probe or "struct resource" somewhere. So remove the corresponding code. Fixes: 3a96dff0f828 ("mmc: SD/MMC Host Controller for Wondermedia WM8505/WM8650") Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/bb0bb1ed1e18de55e8c0547625bde271e64b8c31.1708983064.git.christophe.jaillet@wanadoo.fr Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/wmt-sdmmc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/mmc/host/wmt-sdmmc.c b/drivers/mmc/host/wmt-sdmmc.c index 3933195488575..3fcc81e48ad66 100644 --- a/drivers/mmc/host/wmt-sdmmc.c +++ b/drivers/mmc/host/wmt-sdmmc.c @@ -889,7 +889,6 @@ static int wmt_mci_remove(struct platform_device *pdev) { struct mmc_host *mmc; struct wmt_mci_priv *priv; - struct resource *res; u32 reg_tmp; mmc = platform_get_drvdata(pdev); @@ -917,9 +916,6 @@ static int wmt_mci_remove(struct platform_device *pdev) clk_disable_unprepare(priv->clk_sdmmc); clk_put(priv->clk_sdmmc); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - release_mem_region(res->start, resource_size(res)); - mmc_free_host(mmc); dev_info(&pdev->dev, "WMT MCI device removed\n"); -- 2.43.0