diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-08-27 14:42:40 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-08-29 19:51:39 +0300 |
commit | 4a5cc683543f5f6ed586944095c65cb4da4b9273 (patch) | |
tree | 9ccdc7fdda2d8f4dbff470ad6bd8fbfc209d0779 /drivers/spi | |
parent | 30b31b29a866d32fc381b406d4c4f5db2636e5ec (diff) | |
download | linux-4a5cc683543f5f6ed586944095c65cb4da4b9273.tar.xz |
spi: mt7621: Remove 'clk' from 'struct mt7621_spi'
The 'clk' field in 'struct mt7621_spi' is useless, remove it.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/76ed0ef91479498b9a2d5ef539f80851cffdb4ea.1661599671.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-mt7621.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-mt7621.c b/drivers/spi/spi-mt7621.c index 114f98dcae5e..c4cc8e2f85e2 100644 --- a/drivers/spi/spi-mt7621.c +++ b/drivers/spi/spi-mt7621.c @@ -55,7 +55,6 @@ struct mt7621_spi { void __iomem *base; unsigned int sys_freq; unsigned int speed; - struct clk *clk; int pending_write; }; @@ -361,9 +360,8 @@ static int mt7621_spi_probe(struct platform_device *pdev) rs = spi_controller_get_devdata(master); rs->base = base; - rs->clk = clk; rs->master = master; - rs->sys_freq = clk_get_rate(rs->clk); + rs->sys_freq = clk_get_rate(clk); rs->pending_write = 0; dev_info(&pdev->dev, "sys_freq: %u\n", rs->sys_freq); |