aboutsummaryrefslogtreecommitdiffstats
path: root/ichspi.c
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2017-04-26 12:27:17 +0200
committerNico Huber <nico.h@gmx.de>2017-06-20 11:48:06 +0200
commit560111e2ce506b75b112f0d10b5f9b99f007bfa5 (patch)
treed9a568d1b4c092a80c9252a648f7ea7ce79bff01 /ichspi.c
parent512059118e9ff56d2b4f3c324db5e764e288ac68 (diff)
downloadflashrom-560111e2ce506b75b112f0d10b5f9b99f007bfa5.tar.gz
flashrom-560111e2ce506b75b112f0d10b5f9b99f007bfa5.tar.bz2
flashrom-560111e2ce506b75b112f0d10b5f9b99f007bfa5.zip
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>
Diffstat (limited to 'ichspi.c')
-rw-r--r--ichspi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ichspi.c b/ichspi.c
index e1395ee0..218e3b12 100644
--- a/ichspi.c
+++ b/ichspi.c
@@ -1561,7 +1561,7 @@ static const struct opaque_master opaque_master_ich_hwseq = {
.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 @@ static const struct spi_master spi_master_via = {
.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;