Commit b80f4e3
Bluetooth: hci_qca: schedule a devm action for disabling the clock
In preparation for unduplicating the hci_uart registration code,
schedule a devres action for disabling the SUSCLK rather than doing it
manually.
We cannot really use devm_clk_get_enabled() as we also set the rate
before enabling the clock. While this should in theory work, I don't
want to risk breaking existing users. One solution for the future is to
add devm_clk_get_enabled_with_rate() to the clock framework.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>1 parent bd3f305 commit b80f4e3
1 file changed
Lines changed: 15 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2295 | 2295 | | |
2296 | 2296 | | |
2297 | 2297 | | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
2298 | 2305 | | |
2299 | 2306 | | |
2300 | 2307 | | |
| |||
2434 | 2441 | | |
2435 | 2442 | | |
2436 | 2443 | | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
2437 | 2450 | | |
2438 | 2451 | | |
2439 | 2452 | | |
2440 | | - | |
2441 | 2453 | | |
2442 | 2454 | | |
2443 | 2455 | | |
| |||
2477 | 2489 | | |
2478 | 2490 | | |
2479 | 2491 | | |
2480 | | - | |
| 2492 | + | |
2481 | 2493 | | |
2482 | | - | |
2483 | | - | |
2484 | | - | |
2485 | | - | |
| 2494 | + | |
2486 | 2495 | | |
2487 | | - | |
2488 | | - | |
2489 | 2496 | | |
2490 | 2497 | | |
2491 | 2498 | | |
| |||
0 commit comments