diff options
| author | Evgeny Novikov <[email protected]> | 2021-07-09 14:45:29 +0000 |
|---|---|---|
| committer | Tudor Ambarus <[email protected]> | 2021-10-15 08:43:05 +0000 |
| commit | 78e4d342187625585932bb437ec26e1060f7fc6f (patch) | |
| tree | 8a23a55de490e88e749b0ff7f55a6bd3c60e35ee /drivers/fpga/fpga-bridge.c | |
| parent | mtd: spi-nor: Enable locking for n25q128a13 (diff) | |
| download | kernel-78e4d342187625585932bb437ec26e1060f7fc6f.tar.gz kernel-78e4d342187625585932bb437ec26e1060f7fc6f.zip | |
mtd: spi-nor: hisi-sfc: Remove excessive clk_disable_unprepare()
hisi_spi_nor_probe() invokes clk_disable_unprepare() on all paths after
successful call of clk_prepare_enable(). Besides, the clock is enabled by
hispi_spi_nor_prep() and disabled by hispi_spi_nor_unprep(). So at remove
time it is not possible to have the clock enabled. The patch removes
excessive clk_disable_unprepare() from hisi_spi_nor_remove().
Found by Linux Driver Verification project (linuxtesting.org).
Fixes: e523f11141bd ("mtd: spi-nor: add hisilicon spi-nor flash controller driver")
Signed-off-by: Evgeny Novikov <[email protected]>
Signed-off-by: Tudor Ambarus <[email protected]>
Reviewed-by: Pratyush Yadav <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
