Message ID | 20221207085137.445249-26-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Eun0FAyk; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4NRrnj07t8z23yq for <incoming@patchwork.ozlabs.org>; Wed, 7 Dec 2022 19:59:37 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 392C4855E8; Wed, 7 Dec 2022 09:55:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Eun0FAyk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7CA10855D1; Wed, 7 Dec 2022 09:55:25 +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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) (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 18AD9855FD for <u-boot@lists.denx.de>; Wed, 7 Dec 2022 09:55:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-pl1-x62d.google.com with SMTP id s7so16415405plk.5 for <u-boot@lists.denx.de>; Wed, 07 Dec 2022 00:55:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; 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=HUHN2Bs/P56sRSVrJzSgI5EuGHFtJIvquEJhDQmUTx0=; b=Eun0FAykpeKzyT2U4HxPophymUGWEEhLpAICmI1Qe/QdPd3OReCBh2Ns3BQrbJLwYQ rzrm5aW//RQyyrnHt/5B/3LbeyaZkY8OyB9kNKK+hjCsF951STj1Cr2elRE6laMm69/0 vWkfaIfDFKCT0nd4JlpfbiKzXO31HlcgZqOoc= 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=HUHN2Bs/P56sRSVrJzSgI5EuGHFtJIvquEJhDQmUTx0=; b=SnqVhT8l9OwLULwZqf+MbIYxQJ8hg/CfVdEFmG5T/7OF5j52NLYkjOOfhBXi962bZg 6/5ULojK7jgVxdBN49xpdv6L8JopsMNISCyAAz6xlIUBRPDw7c3BbY8N2NVUQA018sFn xBrZSkTKjnPvLbNF+fEs0urZaXk5jJUyYpwm6xEfais9gMfNpRUG8Q1JdxPs/LhePVl6 I0mk7rDmlDG25axe9ndquQLluf02FHvH6KrTA/eRUJyJv+nSJVJkaWC82MGbF4o2Nn1M FCZDkCx1pVkPxt9PRpsNrzO0ureLTLxDauWQ0Rbf7dAvCZJg2k1PT6KWlajecuVCJMnL ScdA== X-Gm-Message-State: ANoB5pm6/H/h1e97wwJw4XnE7wadkEH4WrDWd0WETkEmT/QRBAoJ6Loi keteLmJnKkEteRTYjIhswdwDWzSjJ4RKSb3A X-Google-Smtp-Source: AA0mqf5e5XPK5zz5pf+cSHJ0ZFTFAc4YzayilFOhs4eJ52czP2RHwgJ7AcoAgOrDaE/fnqBDsCPsEg== X-Received: by 2002:a17:90b:148f:b0:21a:720:b206 with SMTP id js15-20020a17090b148f00b0021a0720b206mr5050311pjb.100.1670403318060; Wed, 07 Dec 2022 00:55:18 -0800 (PST) Received: from localhost.localdomain ([27.110.126.54]) by smtp.gmail.com with ESMTPSA id l16-20020a170903121000b0018157b415dbsm14145514plh.63.2022.12.07.00.55.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 00:55:17 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: U-Boot Custodians <u-boot-custodians@lists.denx.de>, Simon Glass <sjg@chromium.org>, Marek Vasut <marex@denx.de>, Pavel Herrmann <morpheus.ibis@gmail.com>, Sean Anderson <sean.anderson@seco.com> Subject: [PATCH 25/71] dm: usb: Drop some dead code Date: Wed, 7 Dec 2022 21:50:51 +1300 Message-Id: <20221207085137.445249-26-sjg@chromium.org> X-Mailer: git-send-email 2.39.0.rc0.267.gcb52ba06e7-goog In-Reply-To: <20221207085137.445249-1-sjg@chromium.org> References: <20221207085137.445249-1-sjg@chromium.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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
bootstd: Allow migration from distro_bootcmd scripts
|
expand
|
diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c index 060f3441df0..956e2a4e8e4 100644 --- a/drivers/usb/host/usb-uclass.c +++ b/drivers/usb/host/usb-uclass.c @@ -346,49 +346,6 @@ int usb_init(void) return usb_started ? 0 : -1; } -/* - * TODO(sjg@chromium.org): Remove this legacy function. At present it is needed - * to support boards which use driver model for USB but not Ethernet, and want - * to use USB Ethernet. - * - * The #if clause is here to ensure that remains the only case. - */ -#if !defined(CONFIG_DM_ETH) && defined(CONFIG_USB_HOST_ETHER) -static struct usb_device *find_child_devnum(struct udevice *parent, int devnum) -{ - struct usb_device *udev; - struct udevice *dev; - - if (!device_active(parent)) - return NULL; - udev = dev_get_parent_priv(parent); - if (udev->devnum == devnum) - return udev; - - for (device_find_first_child(parent, &dev); - dev; - device_find_next_child(&dev)) { - udev = find_child_devnum(dev, devnum); - if (udev) - return udev; - } - - return NULL; -} - -struct usb_device *usb_get_dev_index(struct udevice *bus, int index) -{ - struct udevice *dev; - int devnum = index + 1; /* Addresses are allocated from 1 on USB */ - - device_find_first_child(bus, &dev); - if (!dev) - return NULL; - - return find_child_devnum(dev, devnum); -} -#endif - int usb_setup_ehci_gadget(struct ehci_ctrl **ctlrp) { struct usb_plat *plat;
Since DM_USB migration is complete this code is not used any more. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/usb/host/usb-uclass.c | 43 ----------------------------------- 1 file changed, 43 deletions(-)