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 0907BC6FA8E for ; Fri, 24 Feb 2023 18:14:10 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C8BAC85BD1; Fri, 24 Feb 2023 19:13:21 +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="lGy+lFPh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D1E5D85B92; Fri, 24 Feb 2023 19:12:02 +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 5BC1A85BC7 for ; Fri, 24 Feb 2023 19:11:27 +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 kb15so435347pjb.1 for ; Fri, 24 Feb 2023 10:11:27 -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=T3g9gIBxV1cBSUUhwU71MgQDSC+tUSmLZnSR63YfeXk=; b=lGy+lFPhWONamClTjGhoqOLIGnqLjrWfsKQERQ265l+4lCqZUPKOBk5k5r43GnlAOm F/JTtZcDpRWBgyCWjPu07gh7BFqMgyHQwgR1UBqqso3EDZdPci4FZQx/kYno5w4J2l1/ cnb24CeWPixQN1YSg2meklmsKhIuoOcH/jjP7mqsqSj5SJNlYCxKqcPvTNNRo9IdDe5v 0DZgJomfElOOdRBE0HWEPwogP8/Gaw7HyFw7SKG5b2fFtV10Bj9xjbsRN2Ff6YLBAFXh DeqC7hgyrAHNJrv+LESQYJG/NqPUer5AEdDvbvb5RQRqh8jPedtOqCDD12DTkc78Hybu vBNw== 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=T3g9gIBxV1cBSUUhwU71MgQDSC+tUSmLZnSR63YfeXk=; b=zgqnKbda8vUt0IeVDe/L8BgsgdTj/n4g6MBKbxhMeerfG6wUEP0u+iZsXvLZ2u5iSQ tTnKUOuOMPhV0gqk+KkTY+ik+ZHn1P/m55VKDFR1VTObpX4/ddd94XvYnqQxEtAzUzy7 LLGDAL2VGuo6Xki+Wg0wkaMHCuXzZ4ubPYf9Q+OyS7aLAx37jCtfAhpWwzjCWfCXN99F C+nSt77mUv4MNOcU2b2PMPeAr1XTDn2EtIori76F1K4qsfzHOjwitBH6oyNVc/uKSXgz 503wM7CKFNb4nxq675Ov7FJ6rjpHXvkJ8JVCPsUj6sB8cmNRX6Ncg+T6AlDthA0W9dw/ OgCA== X-Gm-Message-State: AO0yUKXd747nXmcvYP72OnQCewVECSYnLLeD/Zx5ybDSw73h6yk5qlkh eaf5vxsT7ILM06Gc/TJBCNhmxgNfKnk= X-Google-Smtp-Source: AK7set+URrQ+NUhzxHuzWzzvY0Mvo23CDuHYhAPHtvr7GPicED/Xtn0wQOrTSPtEx9OO2571aC4IXw== X-Received: by 2002:a17:903:283:b0:19c:c73e:8556 with SMTP id j3-20020a170903028300b0019cc73e8556mr6037551plr.6.1677262283880; Fri, 24 Feb 2023 10:11:23 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Feb 2023 10:11:23 -0800 (PST) From: Troy Kisky To: sjg@chromium.org, trini@konsulko.com, u-boot@lists.denx.de Cc: gary.bisson@lairdconnect.com, Troy Kisky , Fabio Estevam Subject: [PATCH v2 20/26] wandboard: use CONFIG_IS_ENABLED(SATA) instead of ifdef CONFIG_SATA Date: Fri, 24 Feb 2023 10:10:41 -0800 Message-Id: <20230224181047.2775829-21-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 Prepare for linking setup_sata only when CONFIG_SATA/CONFIG_SPL_SATA is defined. Signed-off-by: Troy Kisky --- Changes in v2: - new in series board/wandboard/wandboard.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c index da995dd0f58..48914450a29 100644 --- a/board/wandboard/wandboard.c +++ b/board/wandboard/wandboard.c @@ -352,9 +352,8 @@ static void setup_display(void) int board_early_init_f(void) { setup_iomux_uart(); -#ifdef CONFIG_SATA - setup_sata(); -#endif + if (CONFIG_IS_ENABLED(SATA)) + setup_sata(); return 0; } -- 2.34.1