Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp242368ybl; Wed, 4 Dec 2019 01:55:14 -0800 (PST) X-Google-Smtp-Source: APXvYqz5HRHW/bVUVthp8E6i9Nn8h3Hknkd5INvQPzm+7YSx3VR765HwS/YXsJsrqq/kEikaWl87 X-Received: by 2002:aca:cd92:: with SMTP id d140mr1758956oig.68.1575453314460; Wed, 04 Dec 2019 01:55:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575453314; cv=none; d=google.com; s=arc-20160816; b=LwQy0DSqVxs/GRh5Uu+Wet7rp2S+5lBsEL5ShpG8uMmF1ByshqjqAsU8oW+TVNKvXp UkxYrQLRAV5S8S4qdSFv4DsMhFWOcoDxiz9ZXzUN/8NWfZnrr5A05kDg66h+UP2ZQA6i Lf7vK2vV2Q6hRabnFNkUBN+eFACV9582TgcIFBybFwpGsXsroEQsGWZl/ixsyW9z+/wN K8VavF6q5IMbT2MotrKGgD+6cJb4WB75ntCeM3dFqQhiMtMM7t65Z71bOu/tDktEn9H2 oAVVmFv5YGdmRahD9A/mfHVkDomKAX+sdMb6th+XXyQ+eS36qtrnIEcw4YHdYn7U1Ng0 J47w== 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=QRA6zYRpm5Bez6P7PsG7WPgwKkKj4PmiJqmKP9Sh7vukDMyvKL/gvj8VQ/fyBRX86+ LWVjRDqjZZqQpbidQ56rxI0U8JenlNx4wA8vvNA9XPJvuMwEDBSGVN/mqKccl0JWKqsr nRyp17DbG+slWcaba1mk3/S++W5A6o02mbHQNcvojfcSoodP+lxRJfSUgbZhBFoxT4wS 83AcM0cwvBsji1kjOP+ddCHqgrAL/XaPxOerGbw9r5srrvhFr6PglBSC86tXyUvZXbSj zoyrS9mo75dMCP4MhF6oaTdZUxro0rMYh1bD69mXUhU7n7aBoP+87ZHvcPf/sy3sxY2M KMdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gEVEszU2; 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 h3si2814748otk.60.2019.12.04.01.55.01; Wed, 04 Dec 2019 01:55:14 -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=gEVEszU2; 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 S1727489AbfLDJyX (ORCPT + 99 others); Wed, 4 Dec 2019 04:54:23 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34706 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726632AbfLDJyW (ORCPT ); Wed, 4 Dec 2019 04:54:22 -0500 Received: by mail-pg1-f194.google.com with SMTP id r11so3140470pgf.1; Wed, 04 Dec 2019 01:54:22 -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=gEVEszU2rEO5LtTSee+SJLa3xwahRpVX4g6r+WflHC3GAFzlRrmEM9Q1ZDYtBB00Fp YFoDyVLMsRLp1zs30FyWG+R7Spwx9P8aLkS22Bxn8YgE2vmWnrzBRX6ONYFXdiXtQrNW kq6AcXEpC1cejcu75sVx5iMahZ4S7ofWBJ5sYLFES59HA4ieJetY3argbcBJbiaVTGK8 kwpOQlj0e9y9/wwmANAEHPjVm3vXD1vhOxZpo321ZCkVRObxd3NK/G1aoOH7TN/ow8lp FkJvGs0SWJlRPMEmM9iV4fpg58wv96RGZr1XYi1Rb32RWPxDa0oVQ7g6fyKKajVq2x7H tTOw== 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=YoGd2vrcbNLbXnC9Oz0FHo44vknHYe635Clu8DRX1vxH5AHpw7zc15rBkCiiRC4bXe XLgw/JHXr6Tx13QG1/5F0xzNO/ErlqpTTNZQFpsbDoZS04lFEG6KpBd4gfEoZP5nAeXY oAtYFtDlF/4DftBaRnYzOxug/YTM6NN0KZ9F6HIlKsVW1pSpeKuJf+mEs2N4kUNr6+Fx n5+n4vurFYdeycMWDnYlpsX024xSuALFHo2V1mh4N8T41h9VBuqgWpJyEgHMMC3uquL7 EVqm1q+el+q28NgqwvcjJYffJ5IZkhk43hPeEIW5KVVqAychC7RDeU9xXJ/oETwyctjQ yifg== X-Gm-Message-State: APjAAAVZQmK9lc5OLI74Je3aQJWZi4bltZHC50+cITwOsG63J7P+NgEg azb6g3VWXsfLA0pOlVsJsmc= X-Received: by 2002:a63:f04e:: with SMTP id s14mr2667068pgj.30.1575453261840; Wed, 04 Dec 2019 01:54:21 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id k101sm5941687pjb.5.2019.12.04.01.54.19 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Dec 2019 01:54:21 -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 2/3] hwspinlock: sirf: Remove redundant PM runtime functions Date: Wed, 4 Dec 2019 17:53:32 +0800 Message-Id: <222255194cd40b48a0ec2b7e351eda0983b38acc.1575452516.git.baolin.wang7@gmail.com> 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