Repository navigation
Commit bb3222f
net: stmmac: platform: use optional clk/reset get APIs
Use the devm_reset_control_get_optional() and devm_clk_get_optional()
rather than open coding them.
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Link: https://lore.kernel.org/r/20201112092606.5173aa6f@xhacker.debian
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent ca1ab89 commit bb3222f
1 file changed
Lines changed: 9 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| 402 | + | |
402 | 403 | | |
403 | 404 | | |
404 | 405 | | |
| |||
576 | 577 | | |
577 | 578 | | |
578 | 579 | | |
579 | | - | |
| 580 | + | |
580 | 581 | | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
| 582 | + | |
| 583 | + | |
585 | 584 | | |
586 | 585 | | |
587 | 586 | | |
| |||
596 | 595 | | |
597 | 596 | | |
598 | 597 | | |
599 | | - | |
600 | | - | |
| 598 | + | |
| 599 | + | |
601 | 600 | | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
| 601 | + | |
| 602 | + | |
607 | 603 | | |
608 | 604 | | |
609 | 605 | | |
| |||
613 | 609 | | |
614 | 610 | | |
615 | 611 | | |
616 | | - | |
| 612 | + | |
617 | 613 | | |
618 | 614 | | |
619 | 615 | | |
| |||
0 commit comments