From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1giDdG-0006gc-Q7 for barebox@lists.infradead.org; Sat, 12 Jan 2019 07:23:11 +0000 Received: by mail-pg1-x543.google.com with SMTP id d72so7261854pga.9 for ; Fri, 11 Jan 2019 23:23:02 -0800 (PST) From: Andrey Smirnov Date: Fri, 11 Jan 2019 23:22:30 -0800 Message-Id: <20190112072234.21878-13-andrew.smirnov@gmail.com> In-Reply-To: <20190112072234.21878-1-andrew.smirnov@gmail.com> References: <20190112072234.21878-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 12/16] PCI: Drop "rom_address" from struct pci_dev To: barebox@lists.infradead.org Cc: Andrey Smirnov This field is not being used in Barebox. Drop it. Signed-off-by: Andrey Smirnov --- drivers/pci/pci.c | 7 ------- include/linux/pci.h | 1 - 2 files changed, 8 deletions(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index a94864b0c6..10890d07eb 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -406,13 +406,6 @@ static unsigned int pci_scan_bus(struct pci_bus *bus) if (class == PCI_CLASS_BRIDGE_PCI) goto bad; - /* - * read base address registers, again pcibios_fixup() can - * tweak these - */ - pci_read_config_dword(dev, PCI_ROM_ADDRESS, &l); - dev->rom_address = (l == 0xffffffff) ? 0 : l; - setup_device(dev, 6); break; case PCI_HEADER_TYPE_BRIDGE: diff --git a/include/linux/pci.h b/include/linux/pci.h index b609a1330b..2c7acbdda9 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -112,7 +112,6 @@ struct pci_dev { * pcibios_fixup() as necessary. */ unsigned long base_address[6]; - unsigned long rom_address; }; #define to_pci_dev(dev) container_of(dev, struct pci_dev, dev) -- 2.20.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox