chipset_enable: Remove hidden-spidev workaround for Elkhart Lake
We already use the ID of the SPI device here.
Change-Id: I0edce3468399184f295d5be53893c7297a912e8f
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/253
diff --git a/chipset_enable.c b/chipset_enable.c
index e615a1f..5dc651d 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -981,12 +981,6 @@
return enable_flash_pch100_or_c620(dev, name, 0x1f, 5, CHIPSET_300_SERIES_CANNON_POINT);
}
-static int enable_flash_mcc(struct flashprog_programmer *const prog,
- struct pci_dev *const dev, const char *const name)
-{
- return enable_flash_pch100_or_c620(dev, name, 0x1f, 5, CHIPSET_ELKHART_LAKE);
-}
-
static int enable_flash_apl(struct flashprog_programmer *const prog,
struct pci_dev *const dev, const char *const name)
{
@@ -999,6 +993,12 @@
return enable_flash_pch100_or_c620(dev, name, 0x0d, 2, CHIPSET_GEMINI_LAKE);
}
+static int enable_flash_mcc(struct flashprog_programmer *const prog,
+ struct pci_dev *const spi_dev, const char *const name)
+{
+ return enable_flash_pch_spidev(spi_dev, name, CHIPSET_ELKHART_LAKE);
+}
+
static int enable_flash_pch300(struct flashprog_programmer *const prog,
struct pci_dev *const spi_dev, const char *const name)
{