Commit e922f3f
spi: microchip-core-qspi: 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.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/20230823133938.1359106-18-lizetao1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent c45fd12 commit e922f3f
1 file changed
Lines changed: 7 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | | - | |
| 521 | + | |
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | 526 | | |
532 | 527 | | |
533 | 528 | | |
534 | 529 | | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
| 530 | + | |
| 531 | + | |
539 | 532 | | |
540 | 533 | | |
541 | 534 | | |
542 | 535 | | |
543 | 536 | | |
544 | | - | |
| 537 | + | |
545 | 538 | | |
546 | 539 | | |
547 | 540 | | |
| |||
552 | 545 | | |
553 | 546 | | |
554 | 547 | | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
560 | 551 | | |
561 | 552 | | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | 553 | | |
568 | 554 | | |
569 | 555 | | |
| |||
574 | 560 | | |
575 | 561 | | |
576 | 562 | | |
577 | | - | |
578 | 563 | | |
579 | 564 | | |
580 | 565 | | |
| |||
0 commit comments