From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99B6DC7EE23 for ; Fri, 24 Feb 2023 18:21:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 33B5685BB2; Fri, 24 Feb 2023 19:20:20 +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="iuqt5Zgr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D6C42857C1; Fri, 24 Feb 2023 19:19:50 +0100 (CET) Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) (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 2436185BC8 for ; Fri, 24 Feb 2023 19:11:41 +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-pj1-x1033.google.com with SMTP id x34so13876391pjj.0 for ; Fri, 24 Feb 2023 10:11:41 -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=TnJjhwDMFGN/9kJBMCktDznSRMWxZnd+E9PS2CxUwhM=; b=iuqt5ZgrODgQ1AsLZvYiIqiXychmGhEqwspzggl6WbGGtZDSB2Lx70pNL8fHa6VUIV wbzYlk03bezpT+WnK2YZZ5ngkkNhTuti7kZleZf7fjZQq+DcTPLSliafJPJ9tWp+bsce i4d/mmKMRoNVwsQd09ePZlvLFSOhf3aP7mvbGH6SNr2gk7tfh1t8Xowfg3Nlrwcbg2B0 pZdlEee+HhIlGfIrpHH0+X0Q9FeJX2h52V9YQVRl06vS4e++u171ikPlp8ISqz6/s+Kv 0aTd3luUYo5h33QFOfIWiAi0VAWN+3Y1DbraoBLK0H/wYqnok8YO6nC52YFAYsV6Fpot 5KIw== 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=TnJjhwDMFGN/9kJBMCktDznSRMWxZnd+E9PS2CxUwhM=; b=t8BkGiwSLOTpii7mbuXSGdP2NYNnUmk6vwygBok+xV1qGH49Om6E1vGewOQTZ2UIR+ 8pE3hw4n6D9DYG5s1mZXcmY8vbvQuzXNMehQlPH/0iin2vI/u1xbuqqqvYav6OYon+rR jESDfTcfZTYLO1UKA4cQgWmAs9/vnYiDT5iPtBWXt3Zfr/+6oSoKeUjxn4s2oOWj3vWb zAOR91GN4rZACM0vH/CLCdNAJQoI1zZfEe/XbE5LEBCREImuMeTIWQhTQA60AlPqyWtV H2keNvwwZEUOj0caeEOw+IHv2B1Prgud9azCpbTq4MsnP0ac4uBisE9pUjzNP1+6KXaV qy6Q== X-Gm-Message-State: AO0yUKVsqareEetywX7v4muxS9Shyh3Ze7EZkZ9pHehpkJMSnQprQA+o 0/sW1O0B5NlMJnNhiQLXg6A= X-Google-Smtp-Source: AK7set8j5N/9J4ehzHGeIEhddcFF0cG6rkZ69rR/XBegIujUpzLekidebubln4qNWSe1AMo60GsjqA== X-Received: by 2002:a17:902:e542:b0:19a:b427:232d with SMTP id n2-20020a170902e54200b0019ab427232dmr19573640plf.45.1677262287915; Fri, 24 Feb 2023 10:11:27 -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 o1-20020a170902bcc100b0019c922911a2sm7513957pls.40.2023.02.24.10.11.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Feb 2023 10:11:27 -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 v2 23/26] gateworks: venice: Always define setup_fec and setup_eqos Date: Fri, 24 Feb 2023 10:10:44 -0800 Message-Id: <20230224181047.2775829-24-troykiskyboundary@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230224181047.2775829-1-troykiskyboundary@gmail.com> References: <20230224181047.2775829-1-troykiskyboundary@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The compiler will optimize away base on IS_ENABLED(CONFIG_FEC_MXC). It avoids an error in converting to CONFIG_IS_ENABLED(NET). Signed-off-by: Troy Kisky --- Changes in v2: - Always define function instead of using same protection board/gateworks/venice/venice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/gateworks/venice/venice.c b/board/gateworks/venice/venice.c index c4d86c26a9b..7a819e76a1c 100644 --- a/board/gateworks/venice/venice.c +++ b/board/gateworks/venice/venice.c @@ -41,7 +41,6 @@ int board_fit_config_name_match(const char *name) return -1; } -#if (IS_ENABLED(CONFIG_NET)) static int setup_fec(void) { struct iomuxc_gpr_base_regs *gpr = @@ -71,6 +70,7 @@ static int setup_eqos(void) return set_clk_eqos(ENET_125MHZ); } +#if IS_ENABLED(CONFIG_NET) int board_phy_config(struct phy_device *phydev) { unsigned short val; -- 2.34.1