Message ID | 20200915144522.509493-27-seanga2@gmail.com |
---|---|
State | Accepted |
Commit | b9442a01f5e825a892ff78ba0d57cac00033a247 |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com 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=t3vYC+1G; 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 4BrR4g4C7Lz9sTt for <incoming@patchwork.ozlabs.org>; Wed, 16 Sep 2020 00:51:15 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E9CAE823E3; Tue, 15 Sep 2020 16:46:29 +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="t3vYC+1G"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F012282399; Tue, 15 Sep 2020 16:46:08 +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-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) (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 7091182377 for <u-boot@lists.denx.de>; Tue, 15 Sep 2020 16:46:06 +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=seanga2@gmail.com Received: by mail-qk1-x742.google.com with SMTP id t138so4500671qka.0 for <u-boot@lists.denx.de>; Tue, 15 Sep 2020 07:46:06 -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=fDYJ9AA1o0XU1JOaF5Bz2k/5fKnfk+opJjEITcXiAQE=; b=t3vYC+1GHutgkmBIuZIoZh6gtxvU3gJc/6SJ3Vu6g8dGPSQolFcKvPEPOI5TYIs72T sB2g9We0MsVcd+1lL4EBEZ7/QZjzmV6pVbbP2zMXzLZQhkYU3AuLL/pL8U9f1ZOt5wBR oxP0NEn/Wn3COLhXh4LtGZ4e78dobL9ADPUORllSyLt8GNFdaJr2cuZvNVJXC6raaYGr S/t1cmvvsgijZU7agjSs3uD45BghJh24agLAKUxmocgrC/nK3EKF2xd9d0vT2aFBvk5K wacusj6MIxzAZo/0QtxnXsUlDd7wVHs5gGRtl1hdl/ESPEd1TTM/PZvoYa4mR5golho6 52vA== 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=fDYJ9AA1o0XU1JOaF5Bz2k/5fKnfk+opJjEITcXiAQE=; b=Z/ew9DZTdccrNVojmKfYhqsyUmgeIp+cmYINy0HQg2ojyUvvYUj9lFkorZJdRr77T0 mGdBZCzgRcW2rOPIjTg8+n3ur22jB/1sdzdxOvJyAIy9tBD3MeyJcEJ31qy+FpRH3odx /L2k2U73HDEmZfWR96NfbUOcKylf/TZkTnmqNvf+s9mMLP8mZSdGYmCATixmU3nO1Qbe JXPguHYWQqP/80eyG6OU/cUooDoNcSK/y87VMh1PX3nlbkHJGFBR9QtYiTL4gDKTSUhz OHdRgYLdLMbLiHu1D7reWCK92ZtcGUO9EiBH0mZW4kR3Nwddso+K8KGupmghUexMrGQv QnCQ== X-Gm-Message-State: AOAM531wlvHLuX77+RcE76o7exJd7N+TC0RXYI5TmaGzTeI+psjdxOKI WR9UKMylELi6cM+iW6wHICGk0TazNnCzAML2 X-Google-Smtp-Source: ABdhPJylV5NSlPdfsCqyCGZ6nYoF+nBhfJblytsxUyieQJ0zpc7aLDuA3ldQBkeIE9TtKMgW3XgIZg== X-Received: by 2002:a05:620a:1ef:: with SMTP id x15mr17384714qkn.182.1600181165209; Tue, 15 Sep 2020 07:46:05 -0700 (PDT) Received: from godwin.fios-router.home (pool-108-51-35-162.washdc.fios.verizon.net. [108.51.35.162]) by smtp.gmail.com with ESMTPSA id g18sm16371799qko.126.2020.09.15.07.46.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 07:46:04 -0700 (PDT) From: Sean Anderson <seanga2@gmail.com> To: u-boot@lists.denx.de Cc: Sean Anderson <seanga2@gmail.com>, Joe Hershberger <joe.hershberger@ni.com>, Marek Behun <marek.behun@nic.cz>, Stefan Roese <sr@denx.de> Subject: [PATCH v2 26/46] phy: marvell: Fix not calling dev_err with a device Date: Tue, 15 Sep 2020 10:45:02 -0400 Message-Id: <20200915144522.509493-27-seanga2@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200915144522.509493-1-seanga2@gmail.com> References: <20200915144522.509493-1-seanga2@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
dm: Print device name in dev_xxx like Linux
|
expand
|
diff --git a/drivers/phy/marvell/comphy_core.c b/drivers/phy/marvell/comphy_core.c index 27bff27ff7..5e8ce740cd 100644 --- a/drivers/phy/marvell/comphy_core.c +++ b/drivers/phy/marvell/comphy_core.c @@ -98,14 +98,14 @@ static int comphy_probe(struct udevice *dev) chip_cfg->comphy_lanes_count = fdtdec_get_int(blob, node, "max-lanes", 0); if (chip_cfg->comphy_lanes_count <= 0) { - dev_err(&dev->dev, "comphy max lanes is wrong\n"); + dev_err(dev, "comphy max lanes is wrong\n"); return -EINVAL; } chip_cfg->comphy_mux_bitcount = fdtdec_get_int(blob, node, "mux-bitcount", 0); if (chip_cfg->comphy_mux_bitcount <= 0) { - dev_err(&dev->dev, "comphy mux bit count is wrong\n"); + dev_err(dev, "comphy mux bit count is wrong\n"); return -EINVAL; } @@ -124,7 +124,7 @@ static int comphy_probe(struct udevice *dev) * compatible node is found */ if (!chip_cfg->ptr_comphy_chip_init) { - dev_err(&dev->dev, "comphy: No compatible DT node found\n"); + dev_err(dev, "comphy: No compatible DT node found\n"); return -ENODEV; }
No need for indirection here. Signed-off-by: Sean Anderson <seanga2@gmail.com> --- Changes in v2: - New drivers/phy/marvell/comphy_core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)