Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3547211pxb; Mon, 24 Jan 2022 11:56:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqZknfkV0+c0w5+tzoA/G7MLHmfBOoKTJCeCtnKu5k74T+S+BPZNG/ilZH00tHpKC9WCzB X-Received: by 2002:a17:903:285:b0:14a:93d5:3a7c with SMTP id j5-20020a170903028500b0014a93d53a7cmr15896207plr.42.1643054213143; Mon, 24 Jan 2022 11:56:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054213; cv=none; d=google.com; s=arc-20160816; b=ZZZojJuy9GInExxFVRkhZs9SvOxP7FYEvxz9M7ugKrAX7ZUUsKag7UENJ6u8De6uMf 9QF6BVRQrANs+zIJUJJXeKZ0gCmdRrjFuQZ2ytBQZgCbO33LHe/H1KFG+SbEH6qsFzH1 uE9AjMhIoHymOoUlDnk7QemZPaD9w300eeTQ1bR5568fRspY/oQWy+csXg5N2JcBf2Wk 1Uxge+IsMwsLcaXYk49UwM86Y77Kp6vr/gjUuk+C7euk1JZ9snl+Xdz3+QUJ153CXInf k5QpjGMR9KMXk20YSLMt8MmVzWsBWHRXPxCVvjjFzvkX2TarW1PtJ1y4SMIWF7xkJDwF 0sVQ== 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=umsNnOFeToioBfNjTL9zL4dRH7Bx1YaM3b3pA7D/00o=; b=nJZuapumrp0RTkvIPUdiWvaQTajLn+fvhN3a16VlkjAtIYkK6imdvRSaj0HOUVF1M6 A11X0VJPUJSDaZeRcz5GyRXIphS3EB3IHdslegICdNAodUTgDwAliC0f906KuvHQAdYX PM13+n/1TpDj2VFYq5HPRlhELtb7pnpS5Fk0GZvbqcy0JsK3dzo4wjP4UAgSy919SnRW 8Aj7oZasINIIBQQQhRfoRuL+D5ivdQPcBvzc6HrWJ9B9vXBjtqjBXTK2n2DLV+NMKhJJ A0DBLWtMslWNcqf20L5NLgY1762KZon3EjdyinpdD8wZ0c8IBIP63da/q9gfy5pOUwfu 5/fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gDnALDqm; 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 p16si14262570plw.84.2022.01.24.11.56.39; Mon, 24 Jan 2022 11:56:53 -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=gDnALDqm; 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 S245753AbiAXSuf (ORCPT + 99 others); Mon, 24 Jan 2022 13:50:35 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:48420 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245546AbiAXStr (ORCPT ); Mon, 24 Jan 2022 13:49:47 -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 5BBE1614C9; Mon, 24 Jan 2022 18:49:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27344C340E5; Mon, 24 Jan 2022 18:49:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050186; bh=u+aBQpTuCtY9LJk5bEHF2dL9U4aLOFqYV4b54fbW9AY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gDnALDqm8Fbits8VUxpINVGxvgG/ewHq9slqwU0Av52W9ic/g+Ayxpu2A9l2bzWfV CgFymSykZFW7/T6jlw8GV8EH621tVIjnT56F2qxLl6M4xDKFeOT3FeCntTEpEHzUcc CX/YNotzuLz5nEURoGRjm1DxohU5Vc57m7/1nOQo= 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.4 037/114] spi: spi-meson-spifc: Add missing pm_runtime_disable() in meson_spifc_probe Date: Mon, 24 Jan 2022 19:42:12 +0100 Message-Id: <20220124183928.260103655@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183927.095545464@linuxfoundation.org> References: <20220124183927.095545464@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 2465259f62411..8e662e7a35181 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