From patchwork Thu Jun 11 09:19:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 188550 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 425E2C433E2 for ; Thu, 11 Jun 2020 09:19:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1ECB120801 for ; Thu, 11 Jun 2020 09:19:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="C+z/AWXq" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727050AbgFKJT2 (ORCPT ); Thu, 11 Jun 2020 05:19:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727037AbgFKJT0 (ORCPT ); Thu, 11 Jun 2020 05:19:26 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86CAEC08C5C2 for ; Thu, 11 Jun 2020 02:19:25 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id b5so1341875pgm.8 for ; Thu, 11 Jun 2020 02:19:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5LpZ1I24LzIYbhauF0cdv9OkeHWQm8vU4vzlbgzihJI=; b=C+z/AWXqqqyoNGp2beIObz9flW/5cQ7P6N13gSPIgc64s2Jop6sfsm7A9Fyv5oLwXV 4ZGcCbEzds+M8NSiYmV1e/tQCX4hd6FePNTXJtm7XgH02eGGtUnFa0XlzBQUXwTlmiX1 odZLSscTFven04VLWscFmeudCJ2U4LgGusJMA= 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:mime-version:content-transfer-encoding; bh=5LpZ1I24LzIYbhauF0cdv9OkeHWQm8vU4vzlbgzihJI=; b=KggzSZAYlkndhosf6gQ/0T4Xntdxhx77ooaAoqw4WIudWyTC2qY0woc08R7cSO41rz rYx35cFvVenmxF8GVQ7b1EFob7x2JApjlJ/IVe4GnhsrahO2o/W/bhGdCXGd07L6ldhs cmtBtmCLvPCC7NnzxP57zODILWEj2ZYH67LA0TNpIZFhMcspVhRj+SzfgjVMfkkx8N4A 9vdUIailT/M2pfXa9XviMXRlJoWNkKzAGXZ4mL+Y+HCf46FBzRI9F0Qzgdk8yX+26C/t vg2tMydkgb1MZO8Fugw2pY9t3Qtn/SS37lrILumN+WezIkfI7DiPbqT4tfskSmwWTIvV 9RLA== X-Gm-Message-State: AOAM531djHnVsjTZSE4HNn5JkPZyQFZO+MkJXHD35R0T/tqq+HVGs+Ks MxY9QBPo9HA9u8vH7qpusDXUtg== X-Google-Smtp-Source: ABdhPJwzJPE7MfrQqvauxYPmpM5cOPWyY7NDCroTlQmtVZKhjPPDhPWOd2QQiztqms+Ay51GEAd7KA== X-Received: by 2002:a62:7993:: with SMTP id u141mr6712669pfc.110.1591867165095; Thu, 11 Jun 2020 02:19:25 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id 1sm2367852pfx.210.2020.06.11.02.19.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 02:19:24 -0700 (PDT) From: Stephen Boyd To: Kishon Vijay Abraham I , Vinod Koul Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Jeykumar Sankaran , Chandan Uddaraju , Vara Reddy , Tanmay Shah , Bjorn Andersson , Manu Gautam , Sandeep Maheswaram , Douglas Anderson , Sean Paul Subject: [PATCH/RFC 4/8] phy: qcom-qmp: Get dp_com I/O resource by index Date: Thu, 11 Jun 2020 02:19:15 -0700 Message-Id: <20200611091919.108018-5-swboyd@chromium.org> X-Mailer: git-send-email 2.27.0.278.ge193c7cf3a9-goog In-Reply-To: <20200611091919.108018-1-swboyd@chromium.org> References: <20200611091919.108018-1-swboyd@chromium.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The dp_com resource is always at index 1 according to the dts files in the kernel. Get this resource by index so that we don't need to make future additions to the DT binding use 'reg-names'. Cc: Jeykumar Sankaran Cc: Chandan Uddaraju Cc: Vara Reddy Cc: Tanmay Shah Cc: Bjorn Andersson Cc: Manu Gautam Cc: Sandeep Maheswaram Cc: Douglas Anderson Cc: Sean Paul Signed-off-by: Stephen Boyd --- drivers/phy/qualcomm/phy-qcom-qmp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c index dace2f497c85..9dbc8c422263 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c @@ -2608,8 +2608,7 @@ static int qcom_qmp_phy_probe(struct platform_device *pdev) /* per PHY dp_com; if PHY has dp_com control block */ if (cfg->has_phy_dp_com_ctrl) { - res = platform_get_resource_byname(pdev, IORESOURCE_MEM, - "dp_com"); + res = platform_get_resource(pdev, IORESOURCE_MEM, 1); base = devm_ioremap_resource(dev, res); if (IS_ERR(base)) return PTR_ERR(base);