Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp275796ybl; Tue, 7 Jan 2020 19:10:48 -0800 (PST) X-Google-Smtp-Source: APXvYqx8hsb0+ieFbP+Z48hV/vTc+fEOOWgC0HG7kTM7z23dtO9T3QsAC/72VITTRuhkBpocdx+E X-Received: by 2002:a9d:5885:: with SMTP id x5mr2565922otg.132.1578453048026; Tue, 07 Jan 2020 19:10:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578453048; cv=none; d=google.com; s=arc-20160816; b=OLJoQRPgYSe4oFU7otZfhEkutc/2aZWFs9XjRgoMdjeu+cFha37TJ4a3uLmYRbp2nW D3eQk7mSnuf2ZRVVkrXkAtL1pJimwtP+VzB692Zi/VXQqCGCWLlk83MUTs7XhFneVucJ WKi/uOMLw5UIfRPiNGWWgdnYqji4slHTHrsIwLjy5iVg23qnowu0z5eQ8cTuFGim4K/v Ly3unHgxHlj4urZwHJUE6yZBS0jcVAuRpvn2ijkyNZ1Oa5f0KMYqQqhw5hNh5DsoHIlz pWALA+bPt141SerLZSduk3llbPTTtd0sWSxkaa8i2EPz3PgZ2yypYTVWoRFroT/s+Rgl SkdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=RcbR6HMJahH8S+8hPGsQFh+2INPfSPu+4YZ/KRZS6sc=; b=QoWKEdGCtWn7yQsx7qU5Cd4G7/mY/4uNJe9LiYj2wB2JiX0NNqyfOteGfWjkIZIX4k VSszX7V54fIa/5PJpCWf7L0oRNN7CaF08JCYclOZF9vucexKLb4UWX9Yr1IHewGJqr1k o/wIseokxYfPajro37kszNOaNzEqhL6Wcf7aC/qxg+vnev0TsXgJv2ZkGqW1TZmK/B91 im5RjEAlBybdn8Yc1y77S8j077eM1GwVDNjjSTmTsS+2SACH5r/ENKDJEeMTv/79ilq3 hI6n02pNUT0MSj9Md/68KjxsU9T60XowYaOCk6h0asxeNAx1H6VKYC7J0/sMAWLXVvZS VQng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ulKXQbtk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 14si1031034oie.181.2020.01.07.19.10.35; Tue, 07 Jan 2020 19:10:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ulKXQbtk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726525AbgAHDJx (ORCPT + 99 others); Tue, 7 Jan 2020 22:09:53 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:37901 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726146AbgAHDJw (ORCPT ); Tue, 7 Jan 2020 22:09:52 -0500 Received: by mail-pf1-f194.google.com with SMTP id x185so868158pfc.5; Tue, 07 Jan 2020 19:09:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=RcbR6HMJahH8S+8hPGsQFh+2INPfSPu+4YZ/KRZS6sc=; b=ulKXQbtk+t8XB6gLF/Zmv9Mm7i7wCNKwFB5T/XGWM9AvACYQm/cJ0YYFe9etDzPGSS Eb3sVDFd+UmtABt1Py1aoYqN1/SAFABUqvxYnQ58VwK+fu5dRgnMJSisbz6rcNIi5TuD 2oocoYv1mF0fKnP62uYLl6vTBadn4l77gACj3oR+fPgqbcuI+Xg/hxlQYy8C52nrNloA md5f5bUJAPHpIF1Y+nR+nh/G6S5p4NkFM7kHIE9U9IpEBF9LzazeBymgoTYVvQJ3cTWL wimOEhZfx1XsXuyPKrVADRza5adGm+KUm+0rt5gaN6ZohrK3NSZJ8fS4xRkQRZ0nek61 h9CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=RcbR6HMJahH8S+8hPGsQFh+2INPfSPu+4YZ/KRZS6sc=; b=fXh5bDpBphOkzDLNPMfwJogmuza452Lrd+qIPrtAav9LevlaZiWNn4Z9rPMykMBf40 Kg1vEX+7d5+pLMEdYIQ4zjjKbdi5X+dWg+K2O79ik3jpSNPKACAy57tvoDf54WVv+eTl wPPkiclb7gpWoICo/9dMt8LXa2UZE6HrA5Z+pU9H2F12dKRqJNpVvApsfqhpqfH/HHE0 FRj5iUoLTNGEyVtEANCDNfkZTMbtjSJ7qVKFpG8/dU9CVke85r0sZjGEJURy9jtlhMGr 8g1D/uWY/1/WI4a8x3nOK5BBkbNG4VBwWucDhuVtfff9cfxPHrwgyoxgHvdUZdG6RSur p4Cw== X-Gm-Message-State: APjAAAVLgsrIw3yvhaYZQEQNIzCNBsA5gafahuWbd9QDMV8mUmOAa9M5 /TTqnD51R7DyzUcUN+x4cQY= X-Received: by 2002:aa7:8191:: with SMTP id g17mr2803828pfi.25.1578452992158; Tue, 07 Jan 2020 19:09:52 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id l8sm946980pjy.24.2020.01.07.19.09.49 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Jan 2020 19:09:51 -0800 (PST) From: Baolin Wang To: agross@kernel.org, ohad@wizery.com, bjorn.andersson@linaro.org Cc: baolin.wang7@gmail.com, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND 1/2] hwspinlock: qcom: Remove redundant PM runtime functions Date: Wed, 8 Jan 2020 11:09:10 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the hwspinlock core has changed the PM runtime to be optional, and the Qualcomm hardware spinlock has no pm runtime requirement, thus remove these redundant PM runtime functions. Signed-off-by: Baolin Wang --- drivers/hwspinlock/qcom_hwspinlock.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/hwspinlock/qcom_hwspinlock.c b/drivers/hwspinlock/qcom_hwspinlock.c index 6da7447..5a736b0 100644 --- a/drivers/hwspinlock/qcom_hwspinlock.c +++ b/drivers/hwspinlock/qcom_hwspinlock.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include "hwspinlock_internal.h" @@ -122,14 +121,8 @@ static int qcom_hwspinlock_probe(struct platform_device *pdev) regmap, field); } - pm_runtime_enable(&pdev->dev); - - ret = hwspin_lock_register(bank, &pdev->dev, &qcom_hwspinlock_ops, - 0, QCOM_MUTEX_NUM_LOCKS); - if (ret) - pm_runtime_disable(&pdev->dev); - - return ret; + return hwspin_lock_register(bank, &pdev->dev, &qcom_hwspinlock_ops, + 0, QCOM_MUTEX_NUM_LOCKS); } static int qcom_hwspinlock_remove(struct platform_device *pdev) @@ -143,8 +136,6 @@ static int qcom_hwspinlock_remove(struct platform_device *pdev) return ret; } - pm_runtime_disable(&pdev->dev); - return 0; } -- 1.7.9.5