Commit 5c98568
drm/mediatek: dsi: Simplify with dev_err_probe and remove gotos
Most of the functions that are called in the probe callback are
devm managed, or all but mipi_dsi_host_register(): simplify the probe
function's error paths with dev_err_probe() and remove the lonely
instance of `goto err_unregister_host` by just directly calling the
mipi_dsi_host_unregister() function in the devm_request_irq() error
path, allowing to also remove the same label.
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20240215085316.56835-8-angelogioacchino.delregno@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>1 parent e4732b5 commit 5c98568
1 file changed
Lines changed: 18 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1117 | 1117 | | |
1118 | 1118 | | |
1119 | 1119 | | |
1120 | | - | |
1121 | | - | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
1122 | 1123 | | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | 1124 | | |
1128 | 1125 | | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1136 | 1129 | | |
1137 | 1130 | | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
| 1131 | + | |
| 1132 | + | |
1143 | 1133 | | |
1144 | 1134 | | |
1145 | 1135 | | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
| 1136 | + | |
| 1137 | + | |
1151 | 1138 | | |
1152 | 1139 | | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
| 1140 | + | |
| 1141 | + | |
1158 | 1142 | | |
1159 | 1143 | | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
| 1144 | + | |
| 1145 | + | |
1164 | 1146 | | |
1165 | 1147 | | |
1166 | 1148 | | |
1167 | 1149 | | |
1168 | | - | |
1169 | | - | |
1170 | | - | |
1171 | | - | |
| 1150 | + | |
| 1151 | + | |
1172 | 1152 | | |
1173 | 1153 | | |
1174 | 1154 | | |
1175 | 1155 | | |
1176 | | - | |
1177 | | - | |
| 1156 | + | |
| 1157 | + | |
1178 | 1158 | | |
1179 | 1159 | | |
1180 | 1160 | | |
| |||
1186 | 1166 | | |
1187 | 1167 | | |
1188 | 1168 | | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | 1169 | | |
1194 | 1170 | | |
1195 | 1171 | | |
| |||
0 commit comments