1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 22:21:16 +02:00

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>
This commit is contained in:
Nico Huber
2017-04-26 12:27:17 +02:00
committed by Nico Huber
parent 512059118e
commit 560111e2ce
3 changed files with 8 additions and 8 deletions

View File

@ -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;