Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4184318ybp; Mon, 14 Oct 2019 00:10:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsJqQUTm0en0j9oq1cDLwqL2ZpV934vnCb6Q/8ncBplspEdhAycJ07rVruLpCaOI54gwfT X-Received: by 2002:a50:b966:: with SMTP id m93mr26595670ede.228.1571037030965; Mon, 14 Oct 2019 00:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571037030; cv=none; d=google.com; s=arc-20160816; b=VxoLzOYuFE09uJdh0WcVmja0X+djl++VqTTnYFzs2FwidF7OaI9pJahWQMpA5/T/Vg p7Lk4p/rgQu8TsX63qHK1PPaf/WFaHRg02Rf9pK8FEBZ1YHzFGU1BMcJTS1Wjalsq4xK ZGq3Z8MQ784CKI5sTa2jZRzxGd2TTJ5mPO8g22MCfzALOvG4BDyxm/zK0CaK3AJQmjfO 3jbi+AcYU3VriS3RNsEsORIba3aGWde+kEBDT3qL3IE3xQCjBmETR72/NTIL79qhm+iP +QgNAIurww0GK+h/6+hfPmp6eBy80t+Y75ozP8XrXAIi2lWZTaIizdgKmyIfxiJc2mGC gmIQ== 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=Zl79/7idxE+IMncheCqMoc3DO2J1o16hyoOsq1ykglg=; b=WkyvgGr8oOk+mawlZiONasXOkdimpX4ruuLCqjcR25FfDpsRuVF0xFZC9AiZobM80P FqmE+IV4IqGrlatyXfHsYyYDtN22WYHp9wB5glnv58fMCssTcw2B3//1ZUnmEKl5VNfe qavWEBJsiVGpRWRt+AurxAXbz7TA7HeIPiOVyIeCuontOjdAD0q3aCICmca/xL5ERW9W CrWNJEpMQeoZoVXr0uXls333b6my+95W9h1BtnwNUxq/2qiCjSJSVdwf2tek69RvvdBv z+WUgbniPYWFEin2EPcbw87uddr/2yBTq1pBd1tO6Jnd5JysngPcou3LL6MLoOfjJuxb cmWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TSBiloH8; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s20si10705271eja.63.2019.10.14.00.10.07; Mon, 14 Oct 2019 00:10:30 -0700 (PDT) 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=@linaro.org header.s=google header.b=TSBiloH8; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730300AbfJNHI1 (ORCPT + 99 others); Mon, 14 Oct 2019 03:08:27 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:40598 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730288AbfJNHI1 (ORCPT ); Mon, 14 Oct 2019 03:08:27 -0400 Received: by mail-pf1-f196.google.com with SMTP id x127so9847617pfb.7 for ; Mon, 14 Oct 2019 00:08:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=Zl79/7idxE+IMncheCqMoc3DO2J1o16hyoOsq1ykglg=; b=TSBiloH8cU92qacgCVS0kzBRFN6TltVQzaXKFTSrUcjR0r3OBMXTFZc2mw+JMJB6H7 zGn5wH2CJHsF14GFZ4h5rKwQEHdSNuVTIAfQ2I00iydhBl49QFLeaCX6+s6YF4oQO3pa thZMwkoutegGM0Y8gZ7SNCGo1QarTJz1I3suVEQQ2NmE4b/NVw+1qZJWeFxiywPbQZHs 8I/YEBLZurx6neVEIxyakEmG5TlAP44NCHkslXPAVbJZu2dsVWiSkIU9/ed8E5bc1ufp /fgHpQ4Gpx6gjvnIU4AN5IvOC6pEriNm55V8tXEF+jKIZB9gowIGRmy+1F/ZSi4yiv6q ddfw== 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=Zl79/7idxE+IMncheCqMoc3DO2J1o16hyoOsq1ykglg=; b=Hikp0g1lKK0dPpzPmbe+QvcrjEywdGY6p2bDJpXur8aOaW0MPunTcAYN+d9OQVQVod jUDATIidaePeFa5p/UU88CyPCip0ZKfozgOJ3aq9OtkgiTOL2kMpaQH5jfT/xfwCpREb VL+7LCCFKLe+C+BOfU+OmnhIblBS98hyExa6D2/I+Q/byG7/6xrcNnTOLEToHtcDQRA7 m9O4Kz3jBRI3aj9LoS1MrMDXrxoqU3rT9KN8BfqDozjUQyejttnQbWGZiF8b69G2zDDO K7TrijFXuXfvqoFumN6B7w0AIqkTJQkiv87rUwYnZPuC7KsR67bSlHG8B6zZmjZM1mKg l+YA== X-Gm-Message-State: APjAAAVXbdAUJ7rDgWhfNTc2uELyoy/mhI+cJknKsYdaR8RlfHO/onsy FTGWzCdPuvk73fSodDA17+pXQQ== X-Received: by 2002:a63:f44e:: with SMTP id p14mr30314447pgk.2.1571036906264; Mon, 14 Oct 2019 00:08:26 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id p190sm20619948pfb.160.2019.10.14.00.08.22 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Oct 2019 00:08:25 -0700 (PDT) From: Baolin Wang To: ohad@wizery.com, bjorn.andersson@linaro.org Cc: linus.walleij@linaro.org, orsonzhai@gmail.com, zhang.lyra@gmail.com, baolin.wang@linaro.org, linux-arm-kernel@lists.infradead.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] hwspinlock: sprd: Remove redundant PM runtime implementation Date: Mon, 14 Oct 2019 15:07:45 +0800 Message-Id: <8fb54e417ee5833e09103fd1c286c4cf2f41ce69.1571036463.git.baolin.wang@linaro.org> 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, thus remove the redundant PM runtime implementation in the Spreadtrum hwlock driver. Signed-off-by: Baolin Wang --- drivers/hwspinlock/sprd_hwspinlock.c | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/drivers/hwspinlock/sprd_hwspinlock.c b/drivers/hwspinlock/sprd_hwspinlock.c index 44d69db..36dc803 100644 --- a/drivers/hwspinlock/sprd_hwspinlock.c +++ b/drivers/hwspinlock/sprd_hwspinlock.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include "hwspinlock_internal.h" @@ -133,23 +132,10 @@ static int sprd_hwspinlock_probe(struct platform_device *pdev) } platform_set_drvdata(pdev, sprd_hwlock); - pm_runtime_enable(&pdev->dev); - ret = devm_hwspin_lock_register(&pdev->dev, &sprd_hwlock->bank, - &sprd_hwspinlock_ops, 0, - SPRD_HWLOCKS_NUM); - if (ret) { - pm_runtime_disable(&pdev->dev); - return ret; - } - - return 0; -} - -static int sprd_hwspinlock_remove(struct platform_device *pdev) -{ - pm_runtime_disable(&pdev->dev); - return 0; + return devm_hwspin_lock_register(&pdev->dev, &sprd_hwlock->bank, + &sprd_hwspinlock_ops, 0, + SPRD_HWLOCKS_NUM); } static const struct of_device_id sprd_hwspinlock_of_match[] = { @@ -160,7 +146,6 @@ static int sprd_hwspinlock_remove(struct platform_device *pdev) static struct platform_driver sprd_hwspinlock_driver = { .probe = sprd_hwspinlock_probe, - .remove = sprd_hwspinlock_remove, .driver = { .name = "sprd_hwspinlock", .of_match_table = of_match_ptr(sprd_hwspinlock_of_match), -- 1.7.9.5