Commit 77c792b
remoteproc: mtk_scp: Reorder scp_probe() sequence
Cleanup the scp_probe() function by reordering some calls in this
function, useful to reduce the usage of goto(s), and preparing
for one more usage of dev_err_probe().
In particular, we can get the clocks before mapping the memory region,
and move the mutexes initialization right before registering the ipi
handler (which is the first mutex user in this driver).
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220124120915.41292-2-angelogioacchino.delregno@collabora.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>1 parent c1407ac commit 77c792b
1 file changed
Lines changed: 9 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | 794 | | |
799 | 795 | | |
800 | 796 | | |
801 | | - | |
802 | | - | |
| 797 | + | |
803 | 798 | | |
804 | 799 | | |
805 | | - | |
| 800 | + | |
806 | 801 | | |
807 | | - | |
| 802 | + | |
808 | 803 | | |
809 | | - | |
| 804 | + | |
810 | 805 | | |
811 | | - | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
812 | 811 | | |
813 | 812 | | |
814 | 813 | | |
| |||
842 | 841 | | |
843 | 842 | | |
844 | 843 | | |
845 | | - | |
846 | 844 | | |
847 | 845 | | |
848 | 846 | | |
| |||
0 commit comments