Commit 4e26dda
gpio: xilinx: Use helper function devm_clk_get_optional_enabled()
devm_clk_get_optional() and clk_prepare_enable() can be replaced by helper
function devm_clk_get_optional_enabled(). Let's simplify code with use of
devm_clk_get_optional_enabled() and avoid calling clk_disable_unprepare().
Signed-off-by: Zhang Zekun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bartosz Golaszewski <[email protected]>1 parent 162b169 commit 4e26dda
1 file changed
+1
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
337 | | - | |
338 | 336 | | |
339 | 337 | | |
340 | 338 | | |
341 | | - | |
342 | 339 | | |
343 | 340 | | |
344 | 341 | | |
| |||
644 | 641 | | |
645 | 642 | | |
646 | 643 | | |
647 | | - | |
| 644 | + | |
648 | 645 | | |
649 | 646 | | |
650 | 647 | | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | 648 | | |
657 | 649 | | |
658 | 650 | | |
| |||
699 | 691 | | |
700 | 692 | | |
701 | 693 | | |
702 | | - | |
703 | 694 | | |
704 | 695 | | |
705 | 696 | | |
| |||
0 commit comments