Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3558368pxb; Mon, 24 Jan 2022 12:11:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBYKOvF/T0QKqt0o+jwQBTlwVWpBvG44A8JLvkdi06Ker3PShSH5cPnAUGT5Y04lT9khOF X-Received: by 2002:a63:f64b:: with SMTP id u11mr12348285pgj.448.1643055079518; Mon, 24 Jan 2022 12:11:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643055079; cv=none; d=google.com; s=arc-20160816; b=ICNLkiZ82dcdoU19bAn4QA0HvuAxsvI4ZbC8nmtFL9LF0Kgyr7WaxuieHPi3qTux8K IciDwyPVO5C3/aA+lk/sZVNZjpFXjH+15PWhVsPWQrk9OjdGu/zdbr02P+Zx/JCpCNtt 7pUlu2N4eZQVCMIFPb0hv/9aO/StC8SAbdh7rHv0wz6eyoJ+1fPI+1tGQVMzHqBjkxKd P8TjKXoSI5NaMJTE872/o+gc06NIorH5B96SKxdJWf4bKEGUt49iEC+q+flWurw7mgMo BOJsW6vhVnTQuuQIclifkWaCaju7HuhpXm1It6NZekk0yKhHxtRYivN+V4W92VwsmiQT K3Nw== 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=B5vpOCfvyEcyHy4SygoGViuLDMxmLiX+hJbTL7/s/otYjHnDgskQ0Xzmeux/4xIRu3 4Y0YqlHB9HC+pKAegKBqeWPkczf2r+1Eer9xxvG66Vk3kAd4wGp03FYoK2iaCBF7JDSV Nr+IfjqCl4IrfT3umj6rTkBUQxtuoz7lU+Y4aVBKB1ONFA7Relp17u6rbn936aRW0q9Q 65hIbaKa8I4E2htZnZ6e0/c8i+P8rVPCwb+QPrxFqq2/g0S0XDCoDbHk1tEKtds5kGRJ PlmXBLeBICJeaXtfndBR1ryRGjR4Yn0HHv2QUTJ/erMLLjiGvFKd9VSQoBAsdTyhYSaX mt3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=C8lRPpTZ; 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 q21si12618322plq.266.2022.01.24.12.11.06; Mon, 24 Jan 2022 12:11:19 -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=C8lRPpTZ; 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 S1344149AbiAXTOW (ORCPT + 99 others); Mon, 24 Jan 2022 14:14:22 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:35414 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346377AbiAXTF0 (ORCPT ); Mon, 24 Jan 2022 14:05:26 -0500 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 D93C561209; Mon, 24 Jan 2022 19:05:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9D80C340E5; Mon, 24 Jan 2022 19:05:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051125; bh=gZSDVsfYlsAxlWnp9Aw1egp1OcnEtoIW76K3GdYQkMs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C8lRPpTZj4+xKjJdTGyLOb0WSLc8QcmPbbu7pTLTQYN5q+RET4TnRyQqxnBd35CWv 27EmZ35PhV/LwcU/z6fdW483mQczgDSCPq0k1j6bpmCC7nY00Eu0QWVPvMimfZS5mC WYLh+jW6WzPlt8JO6YoHF2JaxE84SS6QlyFp1LnM= 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.14 062/186] spi: spi-meson-spifc: Add missing pm_runtime_disable() in meson_spifc_probe Date: Mon, 24 Jan 2022 19:42:17 +0100 Message-Id: <20220124183939.117977615@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183937.101330125@linuxfoundation.org> References: <20220124183937.101330125@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