]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: orion: Use devm_clk_get_optional()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 7 Aug 2022 21:20:51 +0000 (23:20 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 21 Sep 2022 08:38:46 +0000 (10:38 +0200)
commit38e321a2a903f6a8ce906b700779cbdf2cda03f8
tree309e587a8ea5e72ab9bd64a2c473c5ebbb7764a8
parent69cd76c963dd2bc3a7aaf4ce8e9a0c7bd9967071
mtd: rawnand: orion: Use devm_clk_get_optional()

Use devm_clk_get_optional() instead of hand writing it.

While at it, use dev_err_probe() to further simplify the code. This is also
less verbose if clk_get() returns -EPROBE_DEFER.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/a5bde48e3e1165dd65d1d1c1739e03ace1bef5d3.1659907229.git.christophe.jaillet@wanadoo.fr
drivers/mtd/nand/raw/orion_nand.c