summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-amd.c
diff options
context:
space:
mode:
authorAndré Almeida <andrealmeid@collabora.com>2022-02-11 11:31:54 -0300
committerMark Brown <broonie@kernel.org>2022-02-14 12:53:04 +0000
commitfbc71367288cf1902822618e00c7c1cf6f35348d (patch)
treec52dec83a4aad6071268405b6e490b82584206ce /drivers/spi/spi-amd.c
parent715bea3568e78b80b1d127d8452eac0e3cb6f299 (diff)
downloadlwn-fbc71367288cf1902822618e00c7c1cf6f35348d.tar.gz
lwn-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)