From patchwork Wed Feb 22 01:38:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 1746059 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=TBEnhf0m; 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 ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PLzSN0xw6z240n for ; Wed, 22 Feb 2023 12:43:00 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C582585ADA; Wed, 22 Feb 2023 02:41:17 +0100 (CET) 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="TBEnhf0m"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 599EA85A90; Wed, 22 Feb 2023 02:39:20 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) (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 B2C4285A6C for ; Wed, 22 Feb 2023 02:39:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=troykiskyboundary@gmail.com Received: by mail-pg1-x530.google.com with SMTP id y19so3458055pgk.5 for ; Tue, 21 Feb 2023 17:39:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2RiyjBpG3zz9grdYUmOOqMqZMmUfG93l2RGgGNvSkFU=; b=TBEnhf0m316vrnoGWyRmyX5CTvDCN5TKzR9f5udts8xkk/aYYHH7S6c4V95/Rt/gwD ShKzFlfxSq/VOkMs/fmWeoOHUh7YHu9gHkGlq1peTAFjyyrlUAP2sV1JhdY1Sx8hLSBy oJWCbvfPtuUDTbyE3wjd0x+3vz8kQpMrekwdj5Ly6SedwtEbPxzg/yaHA0Vi/BG/imP/ sGTuZ962EjQkqZJecEW9oY23HBlOltMgj9UMxJmpFvwKmqjyoRLBIrNT0UaRT3mPbrw+ /gUrOrphcY0gr0LR0ennHJLLcTRlsOTxsWNT7MqrPGYeDq9yu4KTXV4VrjZDJ7hL3kcg crng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2RiyjBpG3zz9grdYUmOOqMqZMmUfG93l2RGgGNvSkFU=; b=RW1xFfs99trhhZUatlw6tGuFzIsari2yZ7Sp1Fl8WVF6NkHuXQeEYwouR1HkEipozD ik35UNJjkNo/FWSvphdlaSG/8zvWFZ3SE/Xyy4oRBSs29Lamza4UXp+FHvGNWmH3fRel LCqSYZwdgV+fX3xRspN35doNpIcvab162TgQ4BASTeclgcjT8EnUKrDlOOjrboNScOZZ WtTzbXpZsTV4lWsCisqtlSBqYxriNmCRDRRBCl5aXh/uXsZEgSHbzQh7n9U1y9oQXVXJ QZllKgskklH1jMDSLEQXuT1AIGve0PoSleWQO08YF6pxmqrOtgdpJJweeqgoZL/dux18 bRdA== X-Gm-Message-State: AO0yUKVmpLNhE3VkE7EmuFSut4PL8s84zdZC9tpTFJWn8UpV23r2ByKu sad3JRcXYRKTbn/338jffqaVXQrqYU4p1w== X-Google-Smtp-Source: AK7set9m/3zFI5lWHCjccmzey+1mUXGGajE9OX5tfycB4H0V6BUv9XuoTrAt4TfGnlpn/V17fYJn6A== X-Received: by 2002:a62:5290:0:b0:596:15de:ea1e with SMTP id g138-20020a625290000000b0059615deea1emr6640322pfb.9.1677029943161; Tue, 21 Feb 2023 17:39:03 -0800 (PST) Received: from OS2.boundarydevices.com. (wsip-184-189-120-117.oc.oc.cox.net. [184.189.120.117]) by smtp.gmail.com with ESMTPSA id d6-20020aa78e46000000b005accb31201fsm4200976pfr.26.2023.02.21.17.39.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 17:39:02 -0800 (PST) From: Troy Kisky To: sjg@chromium.org, trini@konsulko.com, u-boot@lists.denx.de Cc: gary.bisson@lairdconnect.com, Troy Kisky , Tim Harvey Subject: [PATCH v1 21/24] gateworks: venice: surround call of setup_fec with if IS_ENABLED(CONFIG_NET) Date: Tue, 21 Feb 2023 17:38:18 -0800 Message-Id: <20230222013821.1144691-22-troykiskyboundary@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230222013821.1144691-1-troykiskyboundary@gmail.com> References: <20230222013821.1144691-1-troykiskyboundary@gmail.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.6 at phobos.denx.de X-Virus-Status: Clean This is the same as the definition is surrounded by. It avoids an error in converting to CONFIG_IS_ENABLED(NET). Signed-off-by: Troy Kisky --- board/gateworks/venice/venice.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/board/gateworks/venice/venice.c b/board/gateworks/venice/venice.c index c4d86c26a9b..ad27835caaf 100644 --- a/board/gateworks/venice/venice.c +++ b/board/gateworks/venice/venice.c @@ -41,7 +41,7 @@ int board_fit_config_name_match(const char *name) return -1; } -#if (IS_ENABLED(CONFIG_NET)) +#if IS_ENABLED(CONFIG_NET) static int setup_fec(void) { struct iomuxc_gpr_base_regs *gpr = @@ -113,10 +113,12 @@ int board_init(void) { venice_eeprom_init(1); +#if IS_ENABLED(CONFIG_NET) if (IS_ENABLED(CONFIG_FEC_MXC)) setup_fec(); if (IS_ENABLED(CONFIG_DWC_ETH_QOS)) setup_eqos(); +#endif return 0; }