Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp219640ybl; Wed, 4 Dec 2019 01:23:25 -0800 (PST) X-Google-Smtp-Source: APXvYqznwi7pPphgYih+H2WjCIDpmWDyL5YIuQYkDJdxpOtuxlRq+vz8EsKV6WTE5MTQmScdISUR X-Received: by 2002:aca:dd43:: with SMTP id u64mr1676452oig.101.1575451405688; Wed, 04 Dec 2019 01:23:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575451405; cv=none; d=google.com; s=arc-20160816; b=tILxg7qvy7hXhsQm8c94nx0+CcuWFZMhxMh/L3F4aN7X4MvWYm2AQXs2Gi2Qzo0E09 EOch223rUZ6hN/l1WzVwyudJql4hZ64BURu5BNJDr9N77s2NzeOKw6r79US43tZu31CL vgNyDLG8LA+alMVKFVRBgk7x/EONqKSQQUXFxiqfCTRNS+ORsRoLe2clBijhQq/nt0FN q7x7E2jSmRT6K3Ng7SLDQl/c3WTWt+qHBsw6xYXXi+gtsf/+fPLJjwes10vjVnI7hVOn Bd7v5a+os1loO8ecLUophibywSsdGRctsyZPQwqiaukZTlO2m+QGluKnYYK++l6YcS2u +onA== 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=egZSQWaNKy0K53E31SOeDZywS917G91TLZdKE7vgUBCJFzpIQFsK4O1oor+oqX4mbD zYvh9K8loCz2M0z6ROeB7bxcIZ/dQVaoqnidUeHK3PoPoYmCNtXgdshla2E33xEWw9ze boLuHdCH4R8ujCOJctxQDfrbXdkyrvgfuvW88ukDTRSDKGAKR5N+8Uirdf2w4JuLSnUC 6jOAUj6UTVY0bn09KnDnN53UIoWCf8BKH246wd+MmNUK13eGdh7ctzKD3DH2wNCxKetd 0uZOcV9KK6vlNJQd4QgCJ7wKptseHjgytw3ZC6EIgIrBQJuIL0+PSlDAP184meUl3SNV 4uRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PwlNbmcj; 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 l21si3088045oic.126.2019.12.04.01.23.12; Wed, 04 Dec 2019 01:23:25 -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=PwlNbmcj; 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 S1727406AbfLDJWm (ORCPT + 99 others); Wed, 4 Dec 2019 04:22:42 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35031 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbfLDJWl (ORCPT ); Wed, 4 Dec 2019 04:22:41 -0500 Received: by mail-pg1-f195.google.com with SMTP id l24so3090629pgk.2; Wed, 04 Dec 2019 01:22:40 -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=PwlNbmcj4jRwxxtbvay8AMytuXlVyeudiTZ53oMfDtNYcWxsPz7CfiWLt8/bZw/ZLF tn8kb7NrVwyZAJsL5jlEo9x40Nlfb7GNVsNK/Iptj6+Hm3BSeR94AsgKqPhE9LS5KAis hcPOSZQ4MQ//VYvKRoarhYGvkZR9VFbklNcdDZk38sI//HjxnvU8WguqadxpIZpsspHA vsKU5S+znaWQk/UR/SfkLhdFBnGiFEIPzPUez9Nu6MYdtKpjLxY4YioEmEU2/Ob8VGeB BdGCwVsHJ0KK73zTjpzb/hV8P6Vt7VSBabAVjOYwEBvUi6ZOOsGKL4u1hkLY8etNKlmM Q5FA== 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=PLChGhSP4x0QGDgGUvy7vxfkLnYdeFjhdsA4BZg/dJR9It6LoazLNusg94sRlEx6Hg gCPH05DigCtofpDYUabw9lmeGDpB+mywupuaEKXZXRSWRJLdAEl8DCJCzqt2zzTkfR40 deImQcXSFbrp73rucBPqVRuwiFxSQyEqxFaAc0dk2mKqg/BuCm1vknjpn28vwKnDuJFU hg4WORahYRtS1bs2JHmHuFZRTcifeKm9pBKVbo+9aTBd4F+VPIC3UTj/ceCP3thhv8Mp xfIdq2Ep0owf7iya0FxMHZYctD8SQ0z/Wx+FxJt9DG8Bqpu/AP7PNSCBBAe/rGeSuj8r aPlQ== X-Gm-Message-State: APjAAAXNHO61wfqUpjUyMIHoSUgfhb7AIs7N16ru0vC9YyMd25CrYGUu xv3E/fssaHQ3qO8eo01VWDGNM2cG X-Received: by 2002:aa7:8ad3:: with SMTP id b19mr2525433pfd.134.1575451360171; Wed, 04 Dec 2019 01:22:40 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id k21sm6482914pgt.22.2019.12.04.01.22.37 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Dec 2019 01:22:39 -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 1/2] hwspinlock: qcom: Remove redundant PM runtime functions Date: Wed, 4 Dec 2019 17:21:56 +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