OSDN Git Service

spi: mpc5xxx-psc: use devm_clk_get_enabled() for core clock
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 6 Mar 2023 18:31:13 +0000 (20:31 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 7 Mar 2023 13:58:32 +0000 (13:58 +0000)
commit9e21720a49589304aef9e37e8b6c6a4196daf156
tree1bb525d133274d50fa686b11c1265df2b7ad431c
parent208ee586f86237969a91ac60ea10f48db9135143
spi: mpc5xxx-psc: use devm_clk_get_enabled() for core clock

Use devm_clk_get_enabled() to simplify the code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230306183115.87314-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mpc512x-psc.c