Message ID | 20200509203729.821800-1-marek.vasut+renesas@gmail.com |
---|---|
State | Accepted |
Commit | f6b5d51be5d843ef5b9bf0c89ab1d56fcb0dc2d1 |
Delegated to: | Marek Vasut |
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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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=Hk0Lv/F8; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 49KJsz69TDz9sNH for <incoming@patchwork.ozlabs.org>; Sun, 10 May 2020 06:37:43 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EC663801B2; Sat, 9 May 2020 22:37:40 +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="Hk0Lv/F8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EDC2B801D1; Sat, 9 May 2020 22:37:39 +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,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) (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 6DE898006B for <u-boot@lists.denx.de>; Sat, 9 May 2020 22:37:36 +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=marek.vasut@gmail.com Received: by mail-wm1-x341.google.com with SMTP id e26so13736241wmk.5 for <u-boot@lists.denx.de>; Sat, 09 May 2020 13:37:36 -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:mime-version :content-transfer-encoding; bh=/SPYNlptiEBz972UWgoNsfmFYkI0mbdEFJuYxDtbT8w=; b=Hk0Lv/F8c/XwEgNvIAY+nJAm/Zm/OH8QISRZux8APwDN62j5h1z8EJGqO3h8u/TJO7 M5BIaMGN7AZpzFpEHbNlxfLP/sXYiI/1VB5R1K4XDtRj2U5NhilZJwVDjzCJ1MnTdHrf QrohUqbpegNZawNvKxgc++w1WK6sdvRlXVgv7glDB9OmyLcx68GcHf5Pa3m11pV7z/4o yEiWBeZ0HgM0cvaTh7VFKvfQlMrZ1eIZ9WdYk4nQRJ8cEGO8XY6FdPsqvXbiDhTP24tW d8FiaJTmKVx4OFbynhjf3j1CAiDEf5hY9v8vSYMYcX9x3sE2K0Am/ybR6SaLC8RqgRmJ 4s9w== 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:mime-version :content-transfer-encoding; bh=/SPYNlptiEBz972UWgoNsfmFYkI0mbdEFJuYxDtbT8w=; b=pLEilI5pKv3GO6Oi6uxcD7SVTBXaQN18IGzaGcDcoMsDkNSIl/sT81sI76nZNDDiUQ Wbbqa78MMwq1k86E3sr98tweaga3xnCJe0vvdoA47LrcZq4xbJAbmxi2qW0WSOEvDz09 MdpYbd9u6fwBmS53h+YVr7A7EeaUYi6sZK4IxmbYISX/hrzfsALV9/umcuWEvTH46RKJ C81QOyvGRDjlmvW9MVoXs1vs9Incv1P8T1+0B5Z6jDb8ymHJqAEZbZYh0EDSyRfQfN/R 1QNwImq3vATVL1VNRXOFBir4lhSknCoXsMjWaFbJk+HGZqthjRm1BLCktlrivEqg8Rj7 W3yQ== X-Gm-Message-State: AGi0PuYdLVKV0djaDd4/Z+0R+RrzrG+R6BTzhoZmknIn0AbSlAFKbDgh 4yKn4WjOuL6QEi+UuH+pgXgTQrI8 X-Google-Smtp-Source: APiQypIZp2Lom+j7xK8IZW7tyq3W4IAL+5w2L3wDXu2SKlywu1wRLc6v8ZQCMgD1mJ7hdfBUaJEVbQ== X-Received: by 2002:a05:600c:243:: with SMTP id 3mr18843028wmj.73.1589056655849; Sat, 09 May 2020 13:37:35 -0700 (PDT) Received: from desktop.lan (ip-86-49-35-8.net.upcbroadband.cz. [86.49.35.8]) by smtp.gmail.com with ESMTPSA id l1sm10017241wrc.24.2020.05.09.13.37.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2020 13:37:34 -0700 (PDT) From: Marek Vasut <marek.vasut@gmail.com> X-Google-Original-From: Marek Vasut <marek.vasut+renesas@gmail.com> To: u-boot@lists.denx.de Cc: Marek Vasut <marek.vasut+renesas@gmail.com>, Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Subject: [PATCH 1/2] sh: r2dplus: Enable board_eth_init only for non-DM case Date: Sat, 9 May 2020 22:37:28 +0200 Message-Id: <20200509203729.821800-1-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
[1/2] sh: r2dplus: Enable board_eth_init only for non-DM case
|
expand
|
diff --git a/board/renesas/r2dplus/r2dplus.c b/board/renesas/r2dplus/r2dplus.c index f2da4686c3..079f778f22 100644 --- a/board/renesas/r2dplus/r2dplus.c +++ b/board/renesas/r2dplus/r2dplus.c @@ -45,7 +45,9 @@ void ide_set_reset(int idereset) } } +#ifndef CONFIG_DM_ETH int board_eth_init(bd_t *bis) { return pci_eth_init(bis); } +#endif
The board_eth_init() is not used for DM case, enable it only for the non-DM case. This function should eventually be removed. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> --- board/renesas/r2dplus/r2dplus.c | 2 ++ 1 file changed, 2 insertions(+)