Commit 9ae241d
pwm: core: Simplify some devm_*pwm*() functions
Use devm_add_action_or_reset() instead of devres_alloc() and
devres_add(), which works the same. This will simplify the
code. There is no functional changes.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>1 parent c333b93 commit 9ae241d
1 file changed
Lines changed: 25 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1065 | 1065 | | |
1066 | 1066 | | |
1067 | 1067 | | |
1068 | | - | |
| 1068 | + | |
1069 | 1069 | | |
1070 | | - | |
| 1070 | + | |
1071 | 1071 | | |
1072 | 1072 | | |
1073 | 1073 | | |
| |||
1083 | 1083 | | |
1084 | 1084 | | |
1085 | 1085 | | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
| 1086 | + | |
| 1087 | + | |
1091 | 1088 | | |
1092 | 1089 | | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
1099 | 1096 | | |
1100 | 1097 | | |
1101 | 1098 | | |
| |||
1116 | 1113 | | |
1117 | 1114 | | |
1118 | 1115 | | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
| 1116 | + | |
| 1117 | + | |
1124 | 1118 | | |
1125 | 1119 | | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1132 | 1126 | | |
1133 | 1127 | | |
1134 | 1128 | | |
| |||
1150 | 1144 | | |
1151 | 1145 | | |
1152 | 1146 | | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
| 1147 | + | |
| 1148 | + | |
1158 | 1149 | | |
1159 | 1150 | | |
1160 | 1151 | | |
1161 | 1152 | | |
1162 | 1153 | | |
| 1154 | + | |
| 1155 | + | |
1163 | 1156 | | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
1170 | 1160 | | |
1171 | 1161 | | |
1172 | 1162 | | |
| |||
0 commit comments