From patchwork Fri May 14 20:54:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alper Nebi Yasak X-Patchwork-Id: 1478685 X-Patchwork-Delegate: narmstrong@baylibre.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=KGrl+AQR; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FhglT4kvqz9sCD for ; Sat, 15 May 2021 06:55:17 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 18C5882B21; Fri, 14 May 2021 22:55:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KGrl+AQR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9DB0080EEF; Fri, 14 May 2021 22:54:56 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2201380EEF for ; Fri, 14 May 2021 22:54:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ej1-x62b.google.com with SMTP id s22so340846ejv.12 for ; Fri, 14 May 2021 13:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xVfzAYwLEbfrxyfyHF1DvqO+kkiib1l13DQIAXj6XKs=; b=KGrl+AQRd2DVw+LdqJOjWPT6cqgAIFrSjp7svYsrCiKknZhSr8Fz9V3vA7kmjWr+a4 viudKwdsAXROxyCdGH5quBkEG355/upuofnqqPGfs4T5aJn+mJnRHBFzDjw2DztvrsSq 5rM0yQ10kYL/LtIFNfrdOXFm1yMQ7FTAsGcIrPYl99IQ5X0ZxRFxDsJTMMz2jA3c6WTg OvxMUpeK9vWURkAEQRrzLgyYHdylyZ7mC1QNjnlf1Mb0atiscW3VzUiLNlZ+G3C+eLXw mh2QWec7U5aMypctUdw14k4XwWC46e/6xnE9sFWBAD/by79asQYKTlktGqGS6vzmNHxK 9V0g== 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=xVfzAYwLEbfrxyfyHF1DvqO+kkiib1l13DQIAXj6XKs=; b=RahPyC52GVlXjfoJjmGpYjxNVyQP/UIDy8gMZY5HUwYrSFXkv3RU48Q1iDBRwgjOFA dIF9o5Lq51ZLDDf/LIu7AWeDulLTYa2t8zpXB8T4ZlNhClBljJ8q8L0f1eys+L0nDkAv likuWila/Ify1g0UUxKyZCoRRDPEoByX5ldSeA03BhD3NG9vZLZBVAZIKPTvGabUT7Pf GyTzyNYSLZQm4RNZ7U8c3LJMrwUNCBdF2MedJd1jrKEPTw64FJHD84ohQS5I19oIfBub 3T5WEaeWm20Y3Bq6NMaWV5xLE8nuenCA3whmARzk8HhCQsB/VXSjGfUBew/WtiOSnbKt GlGA== X-Gm-Message-State: AOAM5318Jzwcwsc+1J5l+HvGM0sa3o0iUYJjXxhnp+5OssJq4rXHO97h x5INNafUMrIEg/uZCbxfVVP/kL28QJU= X-Google-Smtp-Source: ABdhPJxsUOioDuA/QTt8SqI1EDg9gWApC3k+OpSMn60C0twzsJnZwZX4Kn4U1d6ryb5d141JV3Vtbg== X-Received: by 2002:a17:906:55cc:: with SMTP id z12mr43880324ejp.318.1621025692677; Fri, 14 May 2021 13:54:52 -0700 (PDT) Received: from localhost.localdomain ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id n25sm5210171edb.26.2021.05.14.13.54.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 13:54:52 -0700 (PDT) From: Alper Nebi Yasak To: u-boot@lists.denx.de Cc: Neil Armstrong , Joe Hershberger , Simon Glass , u-boot-amlogic@groups.io, Alper Nebi Yasak Subject: [PATCH 2/2] phy: meson-axg-mipi: Access parent ofnode through dev_ofnode() Date: Fri, 14 May 2021 23:54:20 +0300 Message-Id: <20210514205421.65093-2-alpernebiyasak@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210514205421.65093-1-alpernebiyasak@gmail.com> References: <20210514205421.65093-1-alpernebiyasak@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean With commit 84a42ae36683 ("dm: core: Rename device node to indicate it is private") and commit f10643cf8a4c ("dm: core: Access device ofnode through functions") accesses to the "node" member were replaced with dev_ofnode(). Also apply that replacement here. Fixes: 4547551aa019 ("phy: Add Amlogic AXG MIPI PCIe Analog PHY driver") Signed-off-by: Alper Nebi Yasak Reviewed-by: Simon Glass --- drivers/phy/meson-axg-mipi-pcie-analog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/meson-axg-mipi-pcie-analog.c b/drivers/phy/meson-axg-mipi-pcie-analog.c index 7106c23d508f..236ea1ce5ca7 100644 --- a/drivers/phy/meson-axg-mipi-pcie-analog.c +++ b/drivers/phy/meson-axg-mipi-pcie-analog.c @@ -211,7 +211,7 @@ int meson_axg_mipi_pcie_analog_probe(struct udevice *dev) { struct phy_meson_axg_mipi_pcie_analog_priv *priv = dev_get_priv(dev); - priv->regmap = syscon_node_to_regmap(dev_get_parent(dev)->node); + priv->regmap = syscon_node_to_regmap(dev_ofnode(dev_get_parent(dev))); if (IS_ERR(priv->regmap)) return PTR_ERR(priv->regmap);