From patchwork Tue Jul 16 08:49:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Schocher X-Patchwork-Id: 1132527 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45nvGj63vmz9sN4 for ; Tue, 16 Jul 2019 18:49:49 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 8971CC21C6A; Tue, 16 Jul 2019 08:49:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 093D1C21D4A; Tue, 16 Jul 2019 08:49:43 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E6634C21E18; Tue, 16 Jul 2019 08:49:40 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by lists.denx.de (Postfix) with ESMTPS id 249DEC21C4A for ; Tue, 16 Jul 2019 08:49:39 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 45nvGV70YMz1rY5h for ; Tue, 16 Jul 2019 10:49:38 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 45nvGV6mWTz1qwLL for ; Tue, 16 Jul 2019 10:49:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id NlgK3TS4nhQt for ; Tue, 16 Jul 2019 10:49:38 +0200 (CEST) X-Auth-Info: G+a8a6Xbf/aM7VjW7qle05TDGxkDTgdXdXI2ML0heZE= Received: from mail-internal.denx.de (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA for ; Tue, 16 Jul 2019 10:49:38 +0200 (CEST) Received: from pollux.denx.de (pollux [192.168.1.1]) by mail-internal.denx.de (Postfix) with ESMTP id 25889185315; Tue, 16 Jul 2019 10:49:10 +0200 (CEST) Received: by pollux.denx.de (Postfix, from userid 515) id 231771A00A1; Tue, 16 Jul 2019 10:49:10 +0200 (CEST) From: Heiko Schocher To: U-Boot Mailing List Date: Tue, 16 Jul 2019 10:49:03 +0200 Message-Id: <20190716084907.1568340-2-hs@denx.de> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190716084907.1568340-1-hs@denx.de> References: <20190716084907.1568340-1-hs@denx.de> MIME-Version: 1.0 Cc: Marek Vasut , Sven Schwermer Subject: [U-Boot] [PATCH v1 1/5] usb, ohci-hdc: fix warning 'ohci_pci_ids' defined but not used X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" var ohci_pci_ids is only used if DM_USB is not enabled. So define this varaible only if !CONFIG_IS_ENABLED(DM_USB) Signed-off-by: Heiko Schocher --- drivers/usb/host/ohci-hcd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 2b0df88f49..bd498da096 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c @@ -64,6 +64,7 @@ #define OHCI_CONTROL_INIT \ (OHCI_CTRL_CBSR & 0x3) | OHCI_CTRL_IE | OHCI_CTRL_PLE +#if !CONFIG_IS_ENABLED(DM_USB) #ifdef CONFIG_PCI_OHCI static struct pci_device_id ohci_pci_ids[] = { {0x10b9, 0x5237}, /* ULI1575 PCI OHCI module ids */ @@ -73,6 +74,7 @@ static struct pci_device_id ohci_pci_ids[] = { {0, 0} }; #endif +#endif #ifdef CONFIG_PCI_EHCI_DEVNO static struct pci_device_id ehci_pci_ids[] = {