Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3853525pxb; Tue, 17 Nov 2020 05:26:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6ONCH3kksbh4KRKFa7OJruOpioP8HELqKz6A/l60TDDIQ/VW/ThaAVGsyd7tvQdPhxi4M X-Received: by 2002:a05:6402:1c8e:: with SMTP id cy14mr21470844edb.39.1605619591988; Tue, 17 Nov 2020 05:26:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605619591; cv=none; d=google.com; s=arc-20160816; b=jcesaysPANi5peCByizEZPvIeqG5uNWUX6LBpMYaCHT9iVn05K1YB/TvNzQNayBpQL +TbmRwSiu808J0Jp19UbZcosa/xsRfOzSnFyCEw7lOft691Zdkzt9OqHgv80JMYtSSlJ YeQH290Bv0pXm5lCcA/idqnDtv9y7X1ZG/NLtuC8eNOTuDIxa28su9zBHzx/9hVYjAqH 8FOv+zmzp8SiEUbnMu9P6PV0gIGnaLra4N1wlYZ/71OY5CYmMQ3HzSZN+C1hwQV0bJ7P VV58Y4mmKrylyqEaWCvhqyFv7W6wWzno2wKzSrhIyN//H2BJPAOLobF16eLwmkPiioZq si4A== 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=+TEfCldYeT4FHBw52L2XZ9ZRqGdU4DxzqFcw7sVMhgU=; b=p2R2KyKXxDc4F8mwzptWEPp3+EQugN/GVp6p5ZTIPPYGBwTGrHgYUq8aNnTnNYo5gw JUfWvN7bX5QYmdYzh9Ed6JFRP+UuC2VikOIiJl2Ztvs9HukXRHUdtfvejKn4GLlNcz0l 3wiuOOHeAa996lPc1O1f2oR1q7X5znuf502xxXpOXwsnkLL+cTATtzMMwJme8KfQuOcx HnpTjO4iOi8ZU5FeVnVb12m8xfpw1bNmMCc+Kg5/b44/P5OU0TUdNFGTL4HUiixs7q6P 4VA+FQ2/6vlcuUVUupoaF3mHpKyLc9EFnqW5w3xNWc7m6bCK8bcG8GgFicrTg0Qs85rv MUrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Cn+w9RIT; 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=fail (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 u8si2899578edd.34.2020.11.17.05.26.08; Tue, 17 Nov 2020 05:26:31 -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=@kernel.org header.s=default header.b=Cn+w9RIT; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730546AbgKQNW0 (ORCPT + 99 others); Tue, 17 Nov 2020 08:22:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:56508 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731137AbgKQNWV (ORCPT ); Tue, 17 Nov 2020 08:22:21 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 721BF2463D; Tue, 17 Nov 2020 13:22:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605619341; bh=ft3m36Fa78UiYrqDTyTqUtvIkzAJHmBOA0ea50o185U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Cn+w9RITXWPG+iHfsnhlUNk1gFZBozl/YY2dMp6KxqCeg01GcfrGjY3kFWoG+3sEY ZsBqVkZcO+O/rZ8jaddYlrTB/jprctC4uFXXuUvR5Zj4tGxYtzFc/CYgis6a1gdaIE 5HBO19m2XoWESaMjMzGKRRaFQALaiHwJEtja8KbI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yoshihiro Shimoda , Wolfram Sang , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Ulf Hansson Subject: [PATCH 4.19 080/101] mmc: renesas_sdhi_core: Add missing tmio_mmc_host_free() at remove Date: Tue, 17 Nov 2020 14:05:47 +0100 Message-Id: <20201117122117.020259288@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122113.128215851@linuxfoundation.org> References: <20201117122113.128215851@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: Yoshihiro Shimoda commit e8973201d9b281375b5a8c66093de5679423021a upstream. The commit 94b110aff867 ("mmc: tmio: add tmio_mmc_host_alloc/free()") added tmio_mmc_host_free(), but missed the function calling in the sh_mobile_sdhi_remove() at that time. So, fix it. Otherwise, we cannot rebind the sdhi/mmc devices when we use aliases of mmc. Fixes: 94b110aff867 ("mmc: tmio: add tmio_mmc_host_alloc/free()") Signed-off-by: Yoshihiro Shimoda Reviewed-by: Wolfram Sang Tested-by: Wolfram Sang Reviewed-by: Niklas Söderlund Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/1604654730-29914-1-git-send-email-yoshihiro.shimoda.uh@renesas.com Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/renesas_sdhi_core.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/mmc/host/renesas_sdhi_core.c +++ b/drivers/mmc/host/renesas_sdhi_core.c @@ -764,6 +764,7 @@ int renesas_sdhi_remove(struct platform_ tmio_mmc_host_remove(host); renesas_sdhi_clk_disable(host); + tmio_mmc_host_free(host); return 0; }