diff options
author | Phil Edworthy <phil.edworthy@renesas.com> | 2022-05-12 19:45:58 +0100 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-05-16 18:34:36 +0200 |
commit | 6879854d16341ab67d61580fa988ad1b7e7cc040 (patch) | |
tree | 9faf8b05e3d9ffc6949c29cc37829497a75084a4 /include | |
parent | mtd: nand: MTD_NAND_ECC_MEDIATEK should depend on ARCH_MEDIATEK (diff) | |
download | linux-dev-6879854d16341ab67d61580fa988ad1b7e7cc040.tar.xz linux-dev-6879854d16341ab67d61580fa988ad1b7e7cc040.zip |
mtd: rawnand: rockchip: Check before clk_disable_unprepare() not needed
All code in clk_disable_unprepare() already checks the clk ptr using
IS_ERR_OR_NULL so there is no need to check it again before calling it.
A lot of other drivers already rely on this behaviour, so it's safe
to do so here.
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220512184558.45966-1-phil.edworthy@renesas.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions