Commit f15e070
spi: amlogic: spifc-a4: Remove redundant clock cleanup
[ Upstream commit a00da54d06f435dbbeacb84f9121dbbe6d6eda74 ]
The driver uses devm_clk_get_enabled() which enables the clock and
registers a callback to automatically disable it when the device
is unbound.
Remove the redundant aml_sfc_disable_clk() call in the error paths
and remove callback.
Fixes: 4670db6 ("spi: amlogic: add driver for Amlogic SPI Flash Controller")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Link: https://patch.msgid.link/20260308-spifc-a4-1-v1-1-77e286c26832@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent a9e119d commit f15e070
1 file changed
Lines changed: 7 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1083 | 1083 | | |
1084 | 1084 | | |
1085 | 1085 | | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
1094 | 1086 | | |
1095 | 1087 | | |
1096 | 1088 | | |
| |||
1141 | 1133 | | |
1142 | 1134 | | |
1143 | 1135 | | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
| 1136 | + | |
| 1137 | + | |
1148 | 1138 | | |
1149 | 1139 | | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
| 1140 | + | |
| 1141 | + | |
1154 | 1142 | | |
1155 | 1143 | | |
1156 | 1144 | | |
1157 | 1145 | | |
1158 | 1146 | | |
1159 | 1147 | | |
1160 | 1148 | | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
| 1149 | + | |
| 1150 | + | |
1165 | 1151 | | |
1166 | 1152 | | |
1167 | 1153 | | |
| |||
1177 | 1163 | | |
1178 | 1164 | | |
1179 | 1165 | | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
1194 | | - | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
| 1166 | + | |
1198 | 1167 | | |
1199 | 1168 | | |
1200 | 1169 | | |
| |||
1212 | 1181 | | |
1213 | 1182 | | |
1214 | 1183 | | |
1215 | | - | |
1216 | 1184 | | |
1217 | 1185 | | |
1218 | 1186 | | |
| |||
0 commit comments