Commit 091499f
spi: microchip-core-qspi: Use helper function devm_clk_get_enabled()
[ Upstream commit e922f3f ]
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>
Stable-dep-of: e646414 ("spi: microchip-core-qspi: fix controller deregistration")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 420d6f5 commit 091499f
1 file changed
Lines changed: 7 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
| 522 | + | |
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | 527 | | |
533 | 528 | | |
534 | 529 | | |
535 | 530 | | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
| 531 | + | |
| 532 | + | |
540 | 533 | | |
541 | 534 | | |
542 | 535 | | |
543 | 536 | | |
544 | 537 | | |
545 | | - | |
| 538 | + | |
546 | 539 | | |
547 | 540 | | |
548 | 541 | | |
| |||
553 | 546 | | |
554 | 547 | | |
555 | 548 | | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
561 | 552 | | |
562 | 553 | | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | 554 | | |
569 | 555 | | |
570 | 556 | | |
| |||
575 | 561 | | |
576 | 562 | | |
577 | 563 | | |
578 | | - | |
579 | 564 | | |
580 | 565 | | |
581 | 566 | | |
| |||
0 commit comments