Commit c861c1b
clk: bm1880: remove kfrees on static allocations
bm1880_clk_unregister_pll & bm1880_clk_unregister_div both try to
free statically allocated variables, so remove those kfrees.
For example, if we take L703 kfree(div_hw):
- div_hw is a bm1880_div_hw_clock pointer
- in bm1880_clk_register_plls this is pointed to an element of arg1:
struct bm1880_div_hw_clock *clks
- in the probe, where bm1880_clk_register_plls is called arg1 is
bm1880_div_clks, defined on L371:
static struct bm1880_div_hw_clock bm1880_div_clks[]
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Fixes: 1ab4601 ("clk: Add common clock driver for BM1880 SoC")
Link: https://lore.kernel.org/r/20211223154244.1024062-1-conor.dooley@microchip.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>1 parent fa55b7d commit c861c1b
1 file changed
Lines changed: 2 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | 525 | | |
534 | 526 | | |
535 | 527 | | |
| |||
555 | 547 | | |
556 | 548 | | |
557 | 549 | | |
558 | | - | |
| 550 | + | |
559 | 551 | | |
560 | 552 | | |
561 | 553 | | |
| |||
695 | 687 | | |
696 | 688 | | |
697 | 689 | | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | 690 | | |
707 | 691 | | |
708 | 692 | | |
| |||
729 | 713 | | |
730 | 714 | | |
731 | 715 | | |
732 | | - | |
| 716 | + | |
733 | 717 | | |
734 | 718 | | |
735 | 719 | | |
| |||
0 commit comments