From patchwork Fri Jun 22 08:09:04 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: 10481493 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 8F24E60230 for ; Fri, 22 Jun 2018 08:11:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81C0728E74 for ; Fri, 22 Jun 2018 08:11:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 768B828E76; Fri, 22 Jun 2018 08:11:54 +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 28CD028E74 for ; Fri, 22 Jun 2018 08:11:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754345AbeFVILJ (ORCPT ); Fri, 22 Jun 2018 04:11:09 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:39939 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754313AbeFVIKM (ORCPT ); Fri, 22 Jun 2018 04:10:12 -0400 Received: by mail-pg0-f67.google.com with SMTP id w8-v6so2629688pgp.7 for ; Fri, 22 Jun 2018 01:10:12 -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=HNs0NXN6Ng8OmwqRMgMlx0l9e1Zs/10ib/zbBHfhdtugYJKZbbRvtwggReBmZy4GI+ 6Wr5O7tW+/nmqjILFWA7yFLcna+4Wuf1/RkUZS2mFFZ1J+jK/vOiXpziNMCvjOnf43he nVdA8RSqQIG7nGptRsZE9nHYxi6Aqilcqlb5c= 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=DlPqwobWxTwLd0A73a8ej/5/dthd5BG15BUAUrjsD2HZtRDOtc16npgdxYjO0MO4Cr Q8Tu4KtG+WDrG/p6EUuJYMnIjR7FB8DAK1EYErYiche665ZZhZRuoDZ0PtY+qDQLIntQ IkZ+S/T+w8IGrQ6hyyiTbSJy+cSrWwlu0eEkn8oXpIWqo6ChZGGsFnNvpvE6RY5E7P6b +8BnUOKpuEjRzhowtYbgqgcY2shW8i/uCaJqtZafV06IyedsO8VYk0lQltyS1hdYSnY6 XHuYoOK2gjvzxJzcgvhkSBuKOswKL91CKjW4Sv8+eL2Z2hVhfU23pDWifrhX0sRjb2bB iraQ== X-Gm-Message-State: APt69E2z8HJVySSTonDGqwSi96s7tBpC40ungDU1h2qmNgLgMtPt0SMe aGwAyBA94bdth+Kbs04CYUBdeQ== X-Google-Smtp-Source: ADUXVKIapS8nx3nv/SbfC8OrdVS9i1n3JBuQMfeo+wT3Ak2L2ATBhVa37PkVaUEKkFt2QlBc2Wqs7w== X-Received: by 2002:a62:e117:: with SMTP id q23-v6mr645775pfh.75.1529655011469; Fri, 22 Jun 2018 01:10:11 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id i65-v6sm22656131pfd.17.2018.06.22.01.10.08 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jun 2018 01:10:11 -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 7/8] spi: sprd: Replace of_hwspin_lock_get_id() with of_hwspin_lock_get_id_byname() Date: Fri, 22 Jun 2018 16:09:04 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: 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 Acked-by: Mark Brown --- 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;