summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2022-01-06 14:44:39 +0100
committerNico Huber <nico.h@gmx.de>2022-01-10 12:17:25 +0000
commit50847804a9de88379978855b2f6805e3e5824495 (patch)
tree79d0108f51be773cf89bb8a4e8786f45c7d8f019
parent583c15fc659eb81f4e61902ac5abbd845e4ebbb6 (diff)
downloadflashrom-50847804a9de88379978855b2f6805e3e5824495.tar.gz
flashrom-50847804a9de88379978855b2f6805e3e5824495.tar.bz2
flashrom-50847804a9de88379978855b2f6805e3e5824495.zip
nicintel: remove unused rget_io_perms()
The nicintel programmer does not use x86 IO Ports. Remove the dependency to it. Change-Id: Ibe609ff8f8fdbdf2a7de8e1922325ca4ad56a9e7 Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/60844 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Felix Singer <felixsinger@posteo.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--Makefile1
-rw-r--r--nicintel.c7
2 files changed, 0 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 785936206..da38d6bc5 100644
--- a/Makefile
+++ b/Makefile
@@ -128,7 +128,6 @@ DEPENDS_ON_X86_PORT_IO := \
CONFIG_ATAPROMISE \
CONFIG_INTERNAL \
CONFIG_NIC3COM \
- CONFIG_NICINTEL \
CONFIG_NICINTEL_EEPROM \
CONFIG_NICINTEL_SPI \
CONFIG_NICNATSEMI \
diff --git a/nicintel.c b/nicintel.c
index 21dfad2fb..c8a878924 100644
--- a/nicintel.c
+++ b/nicintel.c
@@ -19,7 +19,6 @@
#include "flash.h"
#include "programmer.h"
#include "hwaccess.h"
-#include "hwaccess_x86_io.h"
#include "hwaccess_physmap.h"
#include "platform/pci.h"
@@ -71,12 +70,6 @@ static int nicintel_init(void)
struct pci_dev *dev = NULL;
uintptr_t addr;
- /* Needed only for PCI accesses on some platforms.
- * FIXME: Refactor that into get_mem_perms/rget_io_perms/get_pci_perms?
- */
- if (rget_io_perms())
- return 1;
-
/* FIXME: BAR2 is not available if the device uses the CardBus function. */
dev = pcidev_init(nics_intel, PCI_BASE_ADDRESS_2);
if (!dev)