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: 10481491 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 08DEB60230 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 F008F28E74 for ; Fri, 22 Jun 2018 08:11:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E524428E76; Fri, 22 Jun 2018 08:11:53 +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 8CC6528E74 for ; Fri, 22 Jun 2018 08:11:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754366AbeFVILJ (ORCPT ); Fri, 22 Jun 2018 04:11:09 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:43100 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754314AbeFVIKM (ORCPT ); Fri, 22 Jun 2018 04:10:12 -0400 Received: by mail-pg0-f67.google.com with SMTP id a14-v6so2627325pgw.10 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=E0fPNRv5+T75iGYOdQnkiWh3BcL2ZUtHgGadlRGi8DtfhvJT2YGpmUx16utOiibQfn pBTSaEwwM9xgheBVK9Qs5CY3ZPMxcDfAI7ECWYoiFHYR/ptRrGahgPAiwHANYpiADYmK 9G2POkrUSQxrHcxBrZoMZPAhPrcyr39kWpVn0Oi+fqvmKhgl5C73GVigPyuxuRP+9/is csQpytSc0Uoag4kICh0Fb59wRn0P+ggRzoEmG2/208HV20OrtxSJ0YC4Ab5aUQxvRkm9 7YvO0nfBiyZgcRFgT+9B0zBL24WtwApYC+KCXW5/bfD7tPdD1q3+kVFK9weLN4dMOay0 VcZA== X-Gm-Message-State: APt69E1IbVa3hUhXDxUt5N+qQIRWW8NR1q8OildGBPb7zrEZG7/jTMgj weAglLc4te0Ix9ulXdjp6G9K6A== 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-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@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;