diff options
author | Lizhe <sensor1010@163.com> | 2023-02-26 07:33:34 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-06 00:41:28 +0100 |
commit | 8c220e6c6da9c2f70a78ba8b3121893b3634a54c (patch) | |
tree | 14401f802bb0b3afe216e9a01ef3a39cc9993377 /drivers/spi/spi-rockchip.c | |
parent | drivers/spi-rockchip.c : Use devm_platform_get_and_ioremap_resource makes cod... (diff) | |
download | linux-8c220e6c6da9c2f70a78ba8b3121893b3634a54c.tar.xz linux-8c220e6c6da9c2f70a78ba8b3121893b3634a54c.zip |
drivers/spi-rockchip.c : Remove redundant variable slave
variable slave in spi_alloc_master() or spi_alloc_slave()
has been assigned. it is not necessary to be assigned again
Signed-off-by: Lizhe <sensor1010@163.com>
Link: https://lore.kernel.org/r/20230226063334.7489-1-sensor1010@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-rockchip.c')
-rw-r--r-- | drivers/spi/spi-rockchip.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 4f69c38d5a67..4e73ce170f16 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c @@ -772,7 +772,6 @@ static int rockchip_spi_probe(struct platform_device *pdev) platform_set_drvdata(pdev, ctlr); rs = spi_controller_get_devdata(ctlr); - ctlr->slave = slave_mode; /* Get basic io resource and map it */ rs->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem); |