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 15D74C77B73 for ; Tue, 6 Jun 2023 11:38:57 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 280E085D8B; Tue, 6 Jun 2023 13:38:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.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; unprotected) header.d=kernel.org header.i=@kernel.org header.b="MVNvs5bu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8F02F85DE2; Tue, 6 Jun 2023 13:38:53 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 651EF85C5E for ; Tue, 6 Jun 2023 13:38:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahiroy@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A79DC6311C for ; Tue, 6 Jun 2023 11:38:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B808C433D2; Tue, 6 Jun 2023 11:38:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686051529; bh=DGb4w+DhPfBy7ZUXQ6Hv04O0e/TLh0bQnrfSue/E12A=; h=From:To:Cc:Subject:Date:From; b=MVNvs5buwqnCup2Uw1/QgvEx+Y4sQ3moCKcn/+bXjZBztwuushwoG7rgIaBzYmNHP mEwIISPDnEjVP0Y1Kd5ZS9tat2rCYkBFyuRigTFT1dQaQ5e/uLUvp8f4xhppGlCXVx qy/kwMMnc+v+eeAiqcI8Weee7f4pbCb3PC/Y23Oc50FfbsaZ8JM+RFfFRnu3Cot9sK MotiUpz0XGp5w/16bPt1yfnODEd4eW06v2nCxFiTzGgYKKQ1c3twhkknnuPFrQtXDC sVn5G0ZgqRUrvc9VbDcIbop0mHKIE8iQobcM8xNxKU6in9OgFOcDlQsuLDUf4PrPLM Urvdm/7I7R2dA== From: Masahiro Yamada To: u-boot@lists.denx.de Cc: Masahiro Yamada Subject: [PATCH] stdio: Remove stdio_init() Date: Tue, 6 Jun 2023 20:37:42 +0900 Message-Id: <20230606113742.1915346-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.39.2 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 This function is not used by anyone. Signed-off-by: Masahiro Yamada --- common/stdio.c | 8 -------- include/stdio_dev.h | 7 ------- 2 files changed, 15 deletions(-) diff --git a/common/stdio.c b/common/stdio.c index cbedfdda53..894cbd3fb4 100644 --- a/common/stdio.c +++ b/common/stdio.c @@ -386,11 +386,3 @@ int stdio_add_devices(void) return 0; } - -int stdio_init(void) -{ - stdio_init_tables(); - stdio_add_devices(); - - return 0; -} diff --git a/include/stdio_dev.h b/include/stdio_dev.h index 3105928970..77bf8a8970 100644 --- a/include/stdio_dev.h +++ b/include/stdio_dev.h @@ -84,13 +84,6 @@ int stdio_init_tables(void); */ int stdio_add_devices(void); -/** - * stdio_init() - Sets up stdio ready for use - * - * This calls stdio_init_tables() and stdio_add_devices() - */ -int stdio_init(void); - void stdio_print_current_devices(void); /** -- 2.39.2