realtek: clock: remove cached clock rate
authorSander Vanheule <sander@svanheule.net>
Wed, 9 Nov 2022 21:35:45 +0000 (22:35 +0100)
committerSander Vanheule <sander@svanheule.net>
Mon, 26 Dec 2022 19:29:36 +0000 (20:29 +0100)
The cached clocked rate isn't used anywhere, so there's no need to store it.

target/linux/realtek/files-5.10/drivers/clk/realtek/clk-rtl83xx.c

index edf082a656c12ae9dc3aafbf2124b4e93647d4a1..eb95dae2dd5e7e515269e5ad5f055f31d58146aa 100644 (file)
@@ -234,7 +234,6 @@ struct rtcl_clk {
        unsigned int idx;
        unsigned long min;
        unsigned long max;
-       unsigned long rate;
        unsigned long startup;
 };
 
@@ -390,8 +389,6 @@ static int rtcl_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long pa
        if ((tab_idx < 0) || (tab_idx >= rtab->count) || (rtab->rset[tab_idx].rate != rate))
                return -EINVAL;
 
-       rtcl_ccu->clks[clk->idx].rate = rate;
-
        switch (rtcl_ccu->soc) {
        case RTCL_SOC838X:
                return rtcl_838x_set_rate(clk->idx, &rtab->rset[tab_idx]);