ramips: mt7621_nand: use clk_get_optional_enabled
authorRosen Penev <rosenp@gmail.com>
Sun, 11 Aug 2024 01:05:28 +0000 (18:05 -0700)
committerRobert Marko <robimarko@gmail.com>
Mon, 12 Aug 2024 17:40:48 +0000 (19:40 +0200)
commit11403697c9d36cc014cc408b6d0f14e5a74a17f9
tree246ec4cea5c40c6173b6d3c3e827db68cbf23420
parent9f8599aebe588ba247844ac6b937c97b6fc00994
ramips: mt7621_nand: use clk_get_optional_enabled

Simplifies the code by removing clk_disable_unprepare.

Also removed gotos and used dev_err_probe.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16133
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ramips/files/drivers/mtd/nand/raw/mt7621_nand.c