Commit c45fd12
spi: spi-meson-spifc: Use helper function devm_clk_get_enabled()
Since commit 7ef9651 ("clk: Provide new devm_clk helpers for prepared
and enabled clocks"), devm_clk_get() and clk_prepare_enable() can now be
replaced by devm_clk_get_enabled() when driver enables (and possibly
prepares) the clocks for the whole lifetime of the device. Moreover, it is
no longer necessary to unprepare and disable the clocks explicitly.
Moreover, the lable "out_clk" no longer makes sense, rename it to "out_pm".
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/20230823133938.1359106-17-lizetao1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 7ef5110 commit c45fd12
1 file changed
Lines changed: 3 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | 322 | | |
329 | 323 | | |
330 | 324 | | |
| |||
343 | 337 | | |
344 | 338 | | |
345 | 339 | | |
346 | | - | |
| 340 | + | |
347 | 341 | | |
348 | 342 | | |
349 | 343 | | |
350 | | - | |
351 | | - | |
| 344 | + | |
352 | 345 | | |
353 | 346 | | |
354 | 347 | | |
| |||
357 | 350 | | |
358 | 351 | | |
359 | 352 | | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | 353 | | |
364 | | - | |
365 | 354 | | |
366 | 355 | | |
367 | 356 | | |
| |||
0 commit comments