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 7064AC19F32 for ; Fri, 7 Mar 2025 13:15:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0C8458122F; Fri, 7 Mar 2025 14:15:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=disroot.org 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; secure) header.d=disroot.org header.i=@disroot.org header.b="JoUeU015"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 054EB80079; Fri, 7 Mar 2025 14:15:06 +0100 (CET) Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 120978142D for ; Fri, 7 Mar 2025 14:15:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=disroot.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ziyao@disroot.org Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id C988925C50; Fri, 7 Mar 2025 14:15:03 +0100 (CET) Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id W82DxBib0cjM; Fri, 7 Mar 2025 14:15:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1741353274; bh=CO82xsZsTjZ9Bsj7zVnROc+mWwef1kGrfZWxa3AWUIU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=JoUeU015jxqw/FNSwHhIGX4cY1ifIFrAqOaqkNijr5+CIb23dJW8tsiABnUSKCvYK kIkv0rrgL5elAqJkI4WF4UhjUhefuailm2Qqm7LfE2tVPHAkJFpuzQK9kw5RQ1L68V +XNIc5KwQ1+T5MW84dK8QVY7w4b9LPo5al1hhDVrUn4/E/7y3Yoepp+KeipLwG4NvT bBupdRVJnLS/C0nxuaKC7Bf0Wbti2ASj5ABKzlp+Ofybpw0RUc0t1ejuZhop4UneTz aeSNE41wnsByAPkZOWJy7MnPuwUIDtm1K4X4r4yck6oQ5XJKMpi3Ncr3x7FkbDGQy3 1AJGhymi/ztHw== From: Yao Zi To: Rick Chen , Leo , Tom Rini , Bin Meng , Paul Walmsley , Palmer Dabbelt , Anup Patel , Atish Patra , Green Wan , Minda Chen , Simon Glass , Angelo Dureghello , Ilias Apalodimas , Heinrich Schuchardt Cc: u-boot@lists.denx.de, Yao Zi Subject: [PATCH v2 4/4] board: sifive: Remove dead board_fdt_blob_setup Date: Fri, 7 Mar 2025 13:13:44 +0000 Message-ID: <20250307131344.43762-5-ziyao@disroot.org> In-Reply-To: <20250307131344.43762-1-ziyao@disroot.org> References: <20250307131344.43762-1-ziyao@disroot.org> 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.8 at phobos.denx.de X-Virus-Status: Clean CONFIG_OF_BOARD isn't enabled on SiFive Unleashed and Unmatched, thus board_fdt_blob_setup is actually dead code on these platforms. Let's remove it. Signed-off-by: Yao Zi Reviewed-by: Leo Yu-Chi Liang --- board/sifive/unleashed/unleashed.c | 11 ----------- board/sifive/unmatched/unmatched.c | 10 ---------- 2 files changed, 21 deletions(-) diff --git a/board/sifive/unleashed/unleashed.c b/board/sifive/unleashed/unleashed.c index c1c374610c3..f5da289b836 100644 --- a/board/sifive/unleashed/unleashed.c +++ b/board/sifive/unleashed/unleashed.c @@ -114,17 +114,6 @@ int misc_init_r(void) #endif -int board_fdt_blob_setup(void **fdtp) -{ - if (gd->arch.firmware_fdt_addr) { - *fdtp = (ulong *)(uintptr_t)gd->arch.firmware_fdt_addr; - - return 0; - } - - return -EEXIST; -} - int board_init(void) { /* enable all cache ways */ diff --git a/board/sifive/unmatched/unmatched.c b/board/sifive/unmatched/unmatched.c index 23e03e145ee..a57ce1f10fe 100644 --- a/board/sifive/unmatched/unmatched.c +++ b/board/sifive/unmatched/unmatched.c @@ -10,16 +10,6 @@ #include #include -int board_fdt_blob_setup(void **fdtp) -{ - if (gd->arch.firmware_fdt_addr) { - *fdtp = (ulong *)(uintptr_t)gd->arch.firmware_fdt_addr; - return 0; - } - - return -EEXIST; -} - int board_init(void) { /* enable all cache ways */ -- 2.48.1