Commit 103c6a3
committed
spi: sprd: Convert to platform remove callback
Merge series from Uwe Kleine-König <u.kleine-koenig@pengutronix.de>:
An early error return from a remove callback is usally wrong. In the
case of the spi-sprd driver it's not that critical because the skipped
steps are mainly undoing the things that a successful runtime-resume
would have done.
Still it's cleaner to not exit early and not return an (mostly ignored)
error value. The second patch converts to .remove_new (which is the
motivation for this series).1 file changed
+9
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
1005 | | - | |
| 1005 | + | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | 1008 | | |
1009 | 1009 | | |
1010 | 1010 | | |
1011 | | - | |
1012 | | - | |
| 1011 | + | |
| 1012 | + | |
1013 | 1013 | | |
1014 | | - | |
1015 | | - | |
1016 | 1014 | | |
1017 | 1015 | | |
1018 | 1016 | | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
1022 | 1022 | | |
1023 | 1023 | | |
1024 | | - | |
1025 | | - | |
1026 | 1024 | | |
1027 | 1025 | | |
1028 | 1026 | | |
| |||
1076 | 1074 | | |
1077 | 1075 | | |
1078 | 1076 | | |
1079 | | - | |
| 1077 | + | |
1080 | 1078 | | |
1081 | 1079 | | |
1082 | 1080 | | |
| |||
0 commit comments