summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-amd.c
diff options
context:
space:
mode:
authorAndré Almeida <andrealmeid@collabora.com>2022-02-11 15:31:54 +0100
committerMark Brown <broonie@kernel.org>2022-02-14 13:53:04 +0100
commitfbc71367288cf1902822618e00c7c1cf6f35348d (patch)
treec52dec83a4aad6071268405b6e490b82584206ce /drivers/spi/spi-amd.c
parentspi: amd: Use iopoll for busy waiting (diff)
downloadlinux-fbc71367288cf1902822618e00c7c1cf6f35348d.tar.xz
linux-fbc71367288cf1902822618e00c7c1cf6f35348d.zip
spi: amd: Remove needless rom_addr variable
rom_addr is not used in the code, so we can just drop it from struct amd_spi. Signed-off-by: André Almeida <andrealmeid@collabora.com> Link: https://lore.kernel.org/r/20220211143155.75513-3-andrealmeid@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-amd.c')
-rw-r--r--drivers/spi/spi-amd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-amd.c b/drivers/spi/spi-amd.c
index 899b8d90ff61..417ce14a21c6 100644
--- a/drivers/spi/spi-amd.c
+++ b/drivers/spi/spi-amd.c
@@ -38,7 +38,6 @@
struct amd_spi {
void __iomem *io_remap_addr;
unsigned long io_base_addr;
- u32 rom_addr;
};
static inline u8 amd_spi_readreg8(struct amd_spi *amd_spi, int idx)