]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: Remove no-op request and rfree callbacks
authorSean Anderson <seanga2@gmail.com>
Wed, 1 Dec 2021 19:51:00 +0000 (14:51 -0500)
committerSean Anderson <seanga2@gmail.com>
Fri, 25 Feb 2022 04:58:13 +0000 (23:58 -0500)
These callbacks are optional. Remove ones which do nothing.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/20211201195100.2173465-1-seanga2@gmail.com
drivers/clk/ics8n3qv01.c
drivers/clk/tegra/tegra-car-clk.c
drivers/clk/ti/clk-sci.c

index 6bc1b8ba9d3ac6ad0e32adfcaa4e7034a7eb715a..33fb6ed0c7a412afc9b971b8ffcc95daf6f6d574 100644 (file)
@@ -180,11 +180,6 @@ static ulong ics8n3qv01_set_rate(struct clk *clk, ulong fout)
        return 0;
 }
 
-static int ics8n3qv01_request(struct clk *clock)
-{
-       return 0;
-}
-
 static ulong ics8n3qv01_get_rate(struct clk *clk)
 {
        struct ics8n3qv01_priv *priv = dev_get_priv(clk->dev);
@@ -203,7 +198,6 @@ static int ics8n3qv01_disable(struct clk *clk)
 }
 
 static const struct clk_ops ics8n3qv01_ops = {
-       .request = ics8n3qv01_request,
        .get_rate = ics8n3qv01_get_rate,
        .set_rate = ics8n3qv01_set_rate,
        .enable = ics8n3qv01_enable,
index 09a7cf470ca2654e237a3e108cddda628446b525..c5214b9b3e2ebaf5902e5203522e91a019781a91 100644 (file)
@@ -30,14 +30,6 @@ static int tegra_car_clk_request(struct clk *clk)
        return 0;
 }
 
-static int tegra_car_clk_free(struct clk *clk)
-{
-       debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev,
-             clk->id);
-
-       return 0;
-}
-
 static ulong tegra_car_clk_get_rate(struct clk *clk)
 {
        enum clock_id parent;
@@ -82,7 +74,6 @@ static int tegra_car_clk_disable(struct clk *clk)
 
 static struct clk_ops tegra_car_clk_ops = {
        .request = tegra_car_clk_request,
-       .rfree = tegra_car_clk_free,
        .get_rate = tegra_car_clk_get_rate,
        .set_rate = tegra_car_clk_set_rate,
        .enable = tegra_car_clk_enable,
index acb9eadf03c3148d202400488227f8b5efd124b1..74df5a397bfccf46016655494381bc68550e9809 100644 (file)
@@ -64,18 +64,6 @@ static int ti_sci_clk_of_xlate(struct clk *clk,
        return 0;
 }
 
-static int ti_sci_clk_request(struct clk *clk)
-{
-       debug("%s(clk=%p)\n", __func__, clk);
-       return 0;
-}
-
-static int ti_sci_clk_free(struct clk *clk)
-{
-       debug("%s(clk=%p)\n", __func__, clk);
-       return 0;
-}
-
 static ulong ti_sci_clk_get_rate(struct clk *clk)
 {
        struct ti_sci_clk_data *data = dev_get_priv(clk->dev);
@@ -208,8 +196,6 @@ static const struct udevice_id ti_sci_clk_of_match[] = {
 
 static struct clk_ops ti_sci_clk_ops = {
        .of_xlate = ti_sci_clk_of_xlate,
-       .request = ti_sci_clk_request,
-       .rfree = ti_sci_clk_free,
        .get_rate = ti_sci_clk_get_rate,
        .set_rate = ti_sci_clk_set_rate,
        .set_parent = ti_sci_clk_set_parent,