ichspi: Drop `dev` parameter from init functions
It's never used and has no clear contract (e.g. will the pointer stay
valid beyond the call?).
Change-Id: I0d4e7cc731364e86eff214b9022b842a577f9ef4
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/19460
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
diff --git a/ichspi.c b/ichspi.c
index e1395ee..218e3b1 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -1561,7 +1561,7 @@
.erase = ich_hwseq_block_erase,
};
-int ich_init_spi(struct pci_dev *dev, void *spibar, enum ich_chipset ich_gen)
+int ich_init_spi(void *spibar, enum ich_chipset ich_gen)
{
int i;
uint16_t tmp2;
@@ -1828,7 +1828,7 @@
.write_aai = default_spi_write_aai,
};
-int via_init_spi(struct pci_dev *dev, uint32_t mmio_base)
+int via_init_spi(uint32_t mmio_base)
{
int i;