Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3663998pxb; Mon, 24 Jan 2022 14:48:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0o7dd1aeDqJ3Y7LqRFkgtCLTjL5387gNJ2v9ujCZH0/HUVDFiyIySyBqzsuOEWtsr4EfF X-Received: by 2002:a63:9d8a:: with SMTP id i132mr12989686pgd.329.1643064512139; Mon, 24 Jan 2022 14:48:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643064512; cv=none; d=google.com; s=arc-20160816; b=BBRjmq2D11C2fTczCFmqzJxbXGkSSM1t8HD+LACFNOCzNNXXzechEjFbZCV/T26oN4 8dcpBjr8kF10HY6HImkT0cBS555mlSwZ+UCrplL/hN8tPWZkvhTNVwORwp+d/tjtlVm0 2TS9zZpM1wzuacotJMyacwwGxPIZWSuSK1ZGR1YdqYxEXWdL3OeuA3ckaoQI1d46P74W G8OE5tYsAOIA34QQbd121RmdTWRnz4kdO5OkIxr52GIHVzPtDjpZY7ej51aBw459/Dnf EslkgHLpA2TF9zT0+5bl17t4Yg8xDqXeIM0kMGLk8P+71EV2AWNo9555IqBH3CTIJrf9 ENvw== 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=ASeiJ1JwBYhCrfE7FescDsVHbJlyl73FiIUD2t9fzm0=; b=0Mve2kq79yq6Try0BRAcU/OkOzwxBY5KBnBIOGsydidB3oR79FavQ9N8NUWYC5jA0q bz71t7C6KdWFU7QkSL1qNDNIYd47ADo031fEtSyD3/kI1EnVXPjxM2P0v1KVCJmqgqs5 KU1ne6EgGmRmdlIrt6L9A0lKPMdSX6RIcksQx/zOFLX4hq0A8YMldkqjg6Zo8nmcXskq PcX5lzrivF2Qi1D4uWs/lrE6+fmaJRp40ZyMdwFrgNS5B92tY1TGsBMRPtRgTHM2n28n fIIOFabg1z8CNXjkYPspaof3ZQYhJJS+A2v999lpwyPN8wfbmrws2d0MVcYcxbcU+XJ8 DxtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0YdWMWn+; 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 x25si14594063pga.541.2022.01.24.14.48.19; Mon, 24 Jan 2022 14:48:32 -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=0YdWMWn+; 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 S1838135AbiAXWpz (ORCPT + 99 others); Mon, 24 Jan 2022 17:45:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457220AbiAXVlN (ORCPT ); Mon, 24 Jan 2022 16:41:13 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BB7CC07E308; Mon, 24 Jan 2022 12:27:24 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 1931A61512; Mon, 24 Jan 2022 20:27:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4165C340E5; Mon, 24 Jan 2022 20:27:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056043; bh=VhfLq6rswzGbOL/ljKj6bPc7+9MR7Lf4elfV0tKpNaM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0YdWMWn+Z+6UEnPhZrTVM6sEnnUCUg9zWXuP36UUFnuFm++Ynw6S4z9thZKTOFCrq Ci5IjsKCwJ7h7aar4h/xft5XbbYIcIUaQbO5xrIhemN4kCYzCyTUxHYqrS6JxbXLOz Dhb4a1fhrtdJ8p8tocHUulHNUKwpj6z1g4fH2+38= 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 5.15 351/846] spi: spi-meson-spifc: Add missing pm_runtime_disable() in meson_spifc_probe Date: Mon, 24 Jan 2022 19:37:48 +0100 Message-Id: <20220124184113.059060074@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 8eca6f24cb799..c8ed7815c4ba6 100644 --- a/drivers/spi/spi-meson-spifc.c +++ b/drivers/spi/spi-meson-spifc.c @@ -349,6 +349,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