Commit b498c14
pwm: bcm-iproc: Simplify using devm functions
With devm_clk_get_enabled() the call to clk_disable_unprepare() can be
dropped from the error path and the remove callback. With
devm_pwmchip_add() pwmchip_remove() can be dropped. Then the remove
callback is empty and can go away, too.
Also use dev_err_probe() for simplified (and improved) error reporting.
Link: https://lore.kernel.org/r/20230929161918.2410424-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>1 parent 8151b37 commit b498c14
1 file changed
Lines changed: 9 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
221 | 213 | | |
222 | 214 | | |
223 | 215 | | |
| |||
229 | 221 | | |
230 | 222 | | |
231 | 223 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
244 | 228 | | |
245 | | - | |
246 | | - | |
247 | | - | |
| 229 | + | |
248 | 230 | | |
249 | 231 | | |
250 | 232 | | |
| |||
259 | 241 | | |
260 | 242 | | |
261 | 243 | | |
262 | | - | |
263 | 244 | | |
264 | 245 | | |
265 | 246 | | |
| |||
0 commit comments