Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3580829pxb; Mon, 24 Jan 2022 12:44:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDa09HSU93OryUDFsQWOtFLphYVG0J6dn3fkf4LGNqWXgaTe2+hx57F8Mlau/m8XzECewU X-Received: by 2002:a17:902:a509:b0:143:7eb6:c953 with SMTP id s9-20020a170902a50900b001437eb6c953mr16079340plq.4.1643057051811; Mon, 24 Jan 2022 12:44:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643057051; cv=none; d=google.com; s=arc-20160816; b=kmc0tOhXYGnl4wG5pVnKU4NBn6zcfzDc8iPR9ONXdKSJYKAUoiqkYRYxoZWj0uUmh5 d/Q6q1gT/nNDPd8abyw+L2ui5oKmOUAkaC/vrirRlN1D8zLdbB9s1aURshx0t0ervAH8 /HVzLsvkSFUJfDObzo5reh2aUtfTnW4UEuI2N6n6AkcFtqRPLHtDFnvD36EBdsliqOJd 2RsdhoY0eovq1fovv/0asaBh9FTVysCFI5WEm1WO12PyE/jhD13M7J31TpEOmWCHqmBy pOE1D1MHHVp9Ex27Aevr8DIHg7+BNgtvgAdOKA5t3KQV0I6YR5lz2RJ/1gNejOzav804 dARw== 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=opggwGz8o1mwOgTFNgsgNfvze33iQg4fCLXJK0soWpg=; b=gw1wf0nSwkApUI1Pk8Ozyw3H81YPDYnVbfgLo+OB1gfa4TK07D4ni1JdzHCFcWc9Hb vBTzmvnHAxbk3g2y56WoQDxrL+efwwThVpIxp42RPq5zicP5ezRxw0sliutWPnPuBFQ+ ISEBdhUZc6giHH05q9T3CnneVEeF2ifk6EOsNFMViR5ulfhoUYJkzBDQ692HCfo6JULO c2PXQYlEms8lCCUN+VPi039nbPeofpSj/EOwzmCgWXiSZO/OLBQGePE0SJCm8lJgafEJ H/fdtOi5mMTkrV9GW6OZATNmUYLV8TdCyhP5IwjlSNYvENPezGGeQQ9oy7+OYuifeVs6 wOVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LjV9gJ9a; 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 v10si15883894pgt.845.2022.01.24.12.43.55; Mon, 24 Jan 2022 12:44:11 -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=LjV9gJ9a; 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 S1354161AbiAXUCV (ORCPT + 99 others); Mon, 24 Jan 2022 15:02:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354033AbiAXTfs (ORCPT ); Mon, 24 Jan 2022 14:35:48 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDDE8C0617AB; Mon, 24 Jan 2022 11:16:46 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9A64CB81232; Mon, 24 Jan 2022 19:16:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6D92C340E5; Mon, 24 Jan 2022 19:16:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051804; bh=gZSDVsfYlsAxlWnp9Aw1egp1OcnEtoIW76K3GdYQkMs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LjV9gJ9aeM2maLmAyiEZQSqDoLDOZbsIP+3dD1nnVNI6FdzN1ItZ4gAEgW6TpysRJ G6q8HkRjd0+OCIS6hskPzQtdQohXzWurutm0+zCCwMKrMBo9lmlXdblHMz71A6ZQec UoXD19wbg6yu4++3DAHyKl24KHp+DQyTsqvT8nJE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqian Lin , Mark Brown , Sasha Levin Subject: [PATCH 4.19 092/239] spi: spi-meson-spifc: Add missing pm_runtime_disable() in meson_spifc_probe Date: Mon, 24 Jan 2022 19:42:10 +0100 Message-Id: <20220124183946.040344577@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183943.102762895@linuxfoundation.org> References: <20220124183943.102762895@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: Miaoqian Lin [ Upstream commit 69c1b87516e327a60b39f96b778fe683259408bf ] If the probe fails, we should use pm_runtime_disable() to balance pm_runtime_enable(). Add missing pm_runtime_disable() for meson_spifc_probe. Fixes: c3e4bc5434d2 ("spi: meson: Add support for Amlogic Meson SPIFC") Signed-off-by: Miaoqian Lin Link: https://lore.kernel.org/r/20220107075424.7774-1-linmq006@gmail.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-meson-spifc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-meson-spifc.c b/drivers/spi/spi-meson-spifc.c index 616566e793c62..28975b6f054fa 100644 --- a/drivers/spi/spi-meson-spifc.c +++ b/drivers/spi/spi-meson-spifc.c @@ -357,6 +357,7 @@ static int meson_spifc_probe(struct platform_device *pdev) return 0; out_clk: clk_disable_unprepare(spifc->clk); + pm_runtime_disable(spifc->dev); out_err: spi_master_put(master); return ret; -- 2.34.1