From patchwork Fri Jun 1 09:04:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 10442803 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 45CDA602BD for ; Fri, 1 Jun 2018 09:06:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3AC3227BA5 for ; Fri, 1 Jun 2018 09:06:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2F8AB28C1D; Fri, 1 Jun 2018 09:06:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CB5827BA5 for ; Fri, 1 Jun 2018 09:06:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750830AbeFAJGl (ORCPT ); Fri, 1 Jun 2018 05:06:41 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:46960 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750991AbeFAJF4 (ORCPT ); Fri, 1 Jun 2018 05:05:56 -0400 Received: by mail-pg0-f66.google.com with SMTP id d2-v6so377129pga.13 for ; Fri, 01 Jun 2018 02:05:56 -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=mKiddEQWBDsjx6NRHIvvE6IftcVqW5H+YgW4bj7RSJU=; b=av+B13FyAJWWt3XkeKEAk1Nz6pnFOirVbqqNLQo016F6e5Qei//f4e01gSJBLyV9J/ 8BJ5VsivSNCqfCEg4RVWsaqAKNpYsMSXN5q22AcKchwKTd0aI8wOoo1lQ1Xv+lZXfxSJ 2xfxb9IRo5Tzg8WqQTSHu+UY1KpKAfm1Uy+AA= 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=mKiddEQWBDsjx6NRHIvvE6IftcVqW5H+YgW4bj7RSJU=; b=WY+3jxEDHDd/5nsP7DIL99uRs9L2pOgyGRwZm2N4qgBoRqtqYXzj7LOlh9BY5m1lwg GN7fV1KCk7ipC8mq/0wVZ0X7fEZ1ZkEx/mUlziNmky2O0pl9zSqv/b/YN94m/L6wGu18 D965eQ0YyoJVLvIwg7puNhe9bjGe69lSYBv1psmba3zO8tAl5fPBv1Iec9P6wtpJt+P2 txxa1NG6lrif5LeYmrfJfCLTPU62/VcNFIgGvkbPMM3+wPuTa5MtzHZ9NwSHTn1QMXK2 /HQGkazqTZCHf3+bsulvmGlqsnCaab+ukA4NboJ5+QsAoS8NMPTAm7P20vkDm/kWQ08i r24A== X-Gm-Message-State: ALKqPwfpGxkRb4o4ZRxUR8X8d06bOTxO/Qxixgsjsyzc8KPZnnGWWJjX vcW2kPduP2eFzDjoSyRQw+dFFQ== X-Google-Smtp-Source: ADUXVKI+AGtrnPK/KFKFmPoSgvYqska8R5eHerEuN8NuQ7PO8u6LcMCACHiKCiC/I8Am6mMeWs9iKQ== X-Received: by 2002:a63:4003:: with SMTP id n3-v6mr8183793pga.184.1527843955145; Fri, 01 Jun 2018 02:05:55 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id a4-v6sm89505351pfj.19.2018.06.01.02.05.52 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 Jun 2018 02:05:54 -0700 (PDT) From: Baolin Wang To: ohad@wizery.com, bjorn.andersson@linaro.org, broonie@kernel.org Cc: baolin.wang@linaro.org, linux-spi@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] spi: sprd: Replace of_hwspin_lock_get_id() with of_hwspin_lock_get_id_byname() Date: Fri, 1 Jun 2018 17:04:54 +0800 Message-Id: <1ee51555e05ad1fbfca7fac60050d318be9181f6.1527843425.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1be6adeb558fada77de79a40cd5ef7dc2719c945.1527843425.git.baolin.wang@linaro.org> References: <1be6adeb558fada77de79a40cd5ef7dc2719c945.1527843425.git.baolin.wang@linaro.org> In-Reply-To: <1be6adeb558fada77de79a40cd5ef7dc2719c945.1527843425.git.baolin.wang@linaro.org> References: <1be6adeb558fada77de79a40cd5ef7dc2719c945.1527843425.git.baolin.wang@linaro.org> Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Now the hwlock core has supplied new function to get a specific hwlock id by one hwlock name, which is more clear for users. So change to use of_hwspin_lock_get_id_byname(). Signed-off-by: Baolin Wang --- drivers/spi/spi-sprd-adi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-sprd-adi.c b/drivers/spi/spi-sprd-adi.c index 6fc50cf..d8d5e2f 100644 --- a/drivers/spi/spi-sprd-adi.c +++ b/drivers/spi/spi-sprd-adi.c @@ -459,7 +459,7 @@ static int sprd_adi_probe(struct platform_device *pdev) sadi->slave_pbase = res->start + ADI_SLAVE_OFFSET; sadi->ctlr = ctlr; sadi->dev = &pdev->dev; - ret = of_hwspin_lock_get_id(np, 0); + ret = of_hwspin_lock_get_id_byname(np, "adi"); if (ret < 0) { dev_err(&pdev->dev, "can not get the hardware spinlock\n"); goto put_ctlr;