Commit 4812bc3
spi: spi-fsl-dspi: 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>
Signed-off-by: Li Zetao <lizetao1@huawei.com>
Link: https://lore.kernel.org/r/20230823133938.1359106-14-lizetao1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 349112b commit 4812bc3
1 file changed
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1372 | 1372 | | |
1373 | 1373 | | |
1374 | 1374 | | |
1375 | | - | |
| 1375 | + | |
1376 | 1376 | | |
1377 | 1377 | | |
1378 | 1378 | | |
1379 | 1379 | | |
1380 | 1380 | | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | 1381 | | |
1385 | 1382 | | |
1386 | 1383 | | |
1387 | | - | |
| 1384 | + | |
1388 | 1385 | | |
1389 | 1386 | | |
1390 | 1387 | | |
| |||
1400 | 1397 | | |
1401 | 1398 | | |
1402 | 1399 | | |
1403 | | - | |
| 1400 | + | |
1404 | 1401 | | |
1405 | 1402 | | |
1406 | 1403 | | |
| |||
1432 | 1429 | | |
1433 | 1430 | | |
1434 | 1431 | | |
1435 | | - | |
1436 | | - | |
1437 | 1432 | | |
1438 | 1433 | | |
1439 | 1434 | | |
| |||
1458 | 1453 | | |
1459 | 1454 | | |
1460 | 1455 | | |
1461 | | - | |
1462 | 1456 | | |
1463 | 1457 | | |
1464 | 1458 | | |
| |||
0 commit comments