Commit 9875219
PCI: mediatek-gen3: Clean up mtk_pcie_parse_port() with dev_err_probe()
mtk_pcie_parse_port() in the pcie-mediatek-gen driver has a bunch of
if (err) {
dev_err(dev, "error message\n");
return err; # or goto
}
patterns.
Simplify these with dev_err_probe(). The system also gains proper deferred
probe messages that can be seen in:
/sys/kernel/debug/devices_deferred
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260324052002.4072430-2-wenst@chromium.org1 parent 6de23f8 commit 9875219
1 file changed
Lines changed: 10 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
879 | | - | |
880 | | - | |
881 | | - | |
882 | | - | |
| 879 | + | |
| 880 | + | |
883 | 881 | | |
884 | 882 | | |
885 | 883 | | |
| |||
888 | 886 | | |
889 | 887 | | |
890 | 888 | | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
| 889 | + | |
| 890 | + | |
895 | 891 | | |
896 | 892 | | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
| 893 | + | |
| 894 | + | |
904 | 895 | | |
905 | 896 | | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
| 897 | + | |
| 898 | + | |
913 | 899 | | |
914 | 900 | | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
| 901 | + | |
| 902 | + | |
919 | 903 | | |
920 | 904 | | |
921 | 905 | | |
| |||
0 commit comments