Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp284709ybl; Tue, 7 Jan 2020 19:25:26 -0800 (PST) X-Google-Smtp-Source: APXvYqweQ30a8wipXMAdZwbe6zkndOl5AgLSVesBJXoVI2wjHEP2Rq63UFbvCHAuKdhxhApL4WD3 X-Received: by 2002:aca:3f54:: with SMTP id m81mr1340625oia.73.1578453925887; Tue, 07 Jan 2020 19:25:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578453925; cv=none; d=google.com; s=arc-20160816; b=AdKQL9Lzx5jp44JtJubHddRntjimwODIx4nrxtNxRushflEM0QQFeHKDSrpbIj5GJL oRO55olHHaAr6/3tWMC00tqiX1FBUdNNJ4qSQZjjOexdgXdL3eKzPA+6fGQJQb1PYTJj sSPfX/GrKUYQmoHGPGyQ6/I33o7+g0jrLJ5WLCzW8QOtVGKeuMMQcPAGNHUy5wrBpnnv EVr/MCZQ6y9KEiDAiZFzfdjvrZ5FJs0FTe2Sod6zvDjYpZ+wKcjVM775p5lm60/Afgwi hf/+1Q7RwXJZ/7PVvsdHkxYun+kZnZcP9ftTBxpTpmhHWXpqDF7AOUzswgBB860f5Xpa VJRQ== 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=aTQ2WmgfLL0RKpED5qehF/7+sveySkG+bgQJgoV8etc=; b=hnDKDUlN71P8cTkgPX1QAnZ5dJSxUSUPBB4jkqyEKhcipUljbOJBmttqhUHKvOeKaJ B55vPT5C5KZxAP+rtv4Txkx/ZmzmZryC6Zo2aNeqO59/sXea4S5Cp6Dzhd2LeNuJP/cc RYbpQ8Kn7N7l8zdQh09uJm1qNn/HRzqLrpsWS4Xj0J/zXdq9Iq3MZAh4SUWAeQ5p2Qdh WwqS8e7z1MOtKI2AH4xOSJfNK5sp8xRHrrjQ00T2KY+YDiDEXobE67KssSJwJpZT/uDq QkTQuSxuLwULlJD9pQAD2CD0kF724etYqUBs2POvZpRRkDDca0PAxMpwSZO/avj1+K0m ebMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cEz7w8dK; 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 m25si1136313otr.310.2020.01.07.19.25.12; Tue, 07 Jan 2020 19:25: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=cEz7w8dK; 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 S1726637AbgAHDYP (ORCPT + 99 others); Tue, 7 Jan 2020 22:24:15 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45787 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbgAHDYL (ORCPT ); Tue, 7 Jan 2020 22:24:11 -0500 Received: by mail-pg1-f193.google.com with SMTP id b9so829468pgk.12; Tue, 07 Jan 2020 19:24:11 -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=aTQ2WmgfLL0RKpED5qehF/7+sveySkG+bgQJgoV8etc=; b=cEz7w8dKWriMWqxMsuQxVa5e46S97vL2jdidPeIzqkB7Xvto9kfcvWQwx+jE8VhJsU HhFz558l1P9wgZM2XF42O3c7SvlQkl3h6YWiCC+OA5HSxtrm3lyut6xjDHama/5ahHls ybQ2CLhoTKeuxcZ/WDTCJZDcUBihGkNJnUe5af+piJ5vlnu1U4n3i0S2QX/8DbTSzG5i OIvhHydKLAMskIeuZgYxKmQVNj26UcUHZ56pi66sn1NmW7DoYfyKRx+xNc8yQ0pQuLwt ivXhmv7WsroUIdNNpMvAcPh7EY90iXVnrKBxTg3aqxL6QvzGOaRVCSLQQcNVw73ScGnn ugWg== 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=aTQ2WmgfLL0RKpED5qehF/7+sveySkG+bgQJgoV8etc=; b=p14vtNWykTloEvEx+/KFap1N/4+qBBOH+197QlVYCJgORY6ZDrWdevY/q8taySflqQ PPam0yIEjRFWKu+maLIfu0MA1Dx12tsQB1K6eca7ln2DbzmM/vqGKaEGASJmeToV/Yv5 audj2iTNXbvqToDmSP2vZZUEdk6KBeEjxQg1fZ95PCZNd9+q1tFIHospY5H0ZtFy+Qu+ nP8it0THOftZU6gWdhiwNx/vBkWosevwCqPcWboJjjghMx/ZGA0efItfs6P3eQC1OhWl F65CJn02TTFkRgwJPkEEUwsd4FW+QpBaAWXu3qW4r7oKiULdtKWhb4+JjhaF18ZegtSD cMgw== X-Gm-Message-State: APjAAAVFWNpKXEBvziW1lSAsPYnQ1/41Xm+fKMG0sYFMjoAeNzyM/T/v yANqXVBNIwujyYQ5xgx4dxQ= X-Received: by 2002:a65:4587:: with SMTP id o7mr2951256pgq.303.1578453850648; Tue, 07 Jan 2020 19:24:10 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id g7sm1077875pfq.33.2020.01.07.19.24.08 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Jan 2020 19:24:10 -0800 (PST) From: Baolin Wang To: ohad@wizery.com, bjorn.andersson@linaro.org, baohua@kernel.org Cc: linux-arm-kernel@lists.infradead.org, baolin.wang7@gmail.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND 2/3] hwspinlock: sirf: Remove redundant PM runtime functions Date: Wed, 8 Jan 2020 11:23:45 +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 SIRF hardware spinlock has no pm runtime requirement, thus remove these redundant PM runtime functions. Signed-off-by: Baolin Wang --- drivers/hwspinlock/sirf_hwspinlock.c | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/drivers/hwspinlock/sirf_hwspinlock.c b/drivers/hwspinlock/sirf_hwspinlock.c index 8cb5fd4..d62462e 100644 --- a/drivers/hwspinlock/sirf_hwspinlock.c +++ b/drivers/hwspinlock/sirf_hwspinlock.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include @@ -56,7 +55,7 @@ static int sirf_hwspinlock_probe(struct platform_device *pdev) { struct sirf_hwspinlock *hwspin; struct hwspinlock *hwlock; - int idx, ret; + int idx; if (!pdev->dev.of_node) return -ENODEV; @@ -80,20 +79,9 @@ static int sirf_hwspinlock_probe(struct platform_device *pdev) platform_set_drvdata(pdev, hwspin); - pm_runtime_enable(&pdev->dev); - - ret = hwspin_lock_register(&hwspin->bank, &pdev->dev, - &sirf_hwspinlock_ops, 0, - HW_SPINLOCK_NUMBER); - if (ret) - goto reg_failed; - - return 0; - -reg_failed: - pm_runtime_disable(&pdev->dev); - - return ret; + return hwspin_lock_register(&hwspin->bank, &pdev->dev, + &sirf_hwspinlock_ops, 0, + HW_SPINLOCK_NUMBER); } static int sirf_hwspinlock_remove(struct platform_device *pdev) @@ -107,8 +95,6 @@ static int sirf_hwspinlock_remove(struct platform_device *pdev) return ret; } - pm_runtime_disable(&pdev->dev); - return 0; } -- 1.7.9.5