Commit 2532795
committed
clk: stm32: stm32-core: convert from divider_round_rate_parent() to divider_determine_rate()
The divider_round_rate_parent() function is now deprecated, so let's
migrate to divider_determine_rate() instead so that this deprecated API
can be removed.
Note that when the main function itself was migrated to use
determine_rate, this was mistakenly converted to:
req->rate = divider_round_rate(...)
This is invalid in the case when an error occurs since it can set the
rate to a negative value.
Fixes: cd1cb38 ("clk: stm32: stm32-core: convert from round_rate() to determine_rate()")
Signed-off-by: Brian Masney <bmasney@redhat.com>1 parent 6587c9d commit 2532795
1 file changed
Lines changed: 4 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
| 378 | + | |
| 379 | + | |
385 | 380 | | |
386 | 381 | | |
387 | 382 | | |
| |||
438 | 433 | | |
439 | 434 | | |
440 | 435 | | |
441 | | - | |
442 | 436 | | |
443 | 437 | | |
444 | 438 | | |
| |||
457 | 451 | | |
458 | 452 | | |
459 | 453 | | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
| 454 | + | |
| 455 | + | |
468 | 456 | | |
469 | 457 | | |
470 | 458 | | |
| |||
0 commit comments