Commit 10c3937
spi: dw-bt1: Use helper function devm_clk_get_enabled()
Since commit 7ef9651 ("clk: Provide new devm_clk helpers for prepared
and enabled clocks"), devm_clk_get() and clk_prepare_enable() can now be
replaced by devm_clk_get_enabled() when driver enables (and possibly
prepares) the clocks for the whole lifetime of the device. Moreover, it is
no longer necessary to unprepare and disable the clocks explicitly.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/20230823133938.1359106-12-lizetao1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 9dc2aa9 commit 10c3937
1 file changed
Lines changed: 5 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
| 272 | + | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | 276 | | |
281 | 277 | | |
282 | 278 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
| 279 | + | |
| 280 | + | |
287 | 281 | | |
288 | 282 | | |
289 | 283 | | |
290 | 284 | | |
291 | | - | |
| 285 | + | |
292 | 286 | | |
293 | 287 | | |
294 | 288 | | |
295 | 289 | | |
296 | 290 | | |
297 | 291 | | |
298 | | - | |
| 292 | + | |
299 | 293 | | |
300 | 294 | | |
301 | 295 | | |
302 | 296 | | |
303 | 297 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | 298 | | |
310 | 299 | | |
311 | 300 | | |
| |||
315 | 304 | | |
316 | 305 | | |
317 | 306 | | |
318 | | - | |
319 | | - | |
320 | 307 | | |
321 | 308 | | |
322 | 309 | | |
| |||
0 commit comments