]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/clk/at91/clk-h32mx.c
Merge tag 'gfs2-4.11.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2...
[karo-tx-linux.git] / drivers / clk / at91 / clk-h32mx.c
index 8e20c8a76db7e91993bac8484b9bd2b2cb7f4732..e0daa4a31f881c7b253a2bbc1e97e25f96c8219b 100644 (file)
@@ -92,7 +92,7 @@ static void __init of_sama5d4_clk_h32mx_setup(struct device_node *np)
        struct clk_init_data init;
        const char *parent_name;
        struct regmap *regmap;
-       struct clk *clk;
+       int ret;
 
        regmap = syscon_node_to_regmap(of_get_parent(np));
        if (IS_ERR(regmap))
@@ -113,13 +113,13 @@ static void __init of_sama5d4_clk_h32mx_setup(struct device_node *np)
        h32mxclk->hw.init = &init;
        h32mxclk->regmap = regmap;
 
-       clk = clk_register(NULL, &h32mxclk->hw);
-       if (IS_ERR(clk)) {
+       ret = clk_hw_register(NULL, &h32mxclk->hw);
+       if (ret) {
                kfree(h32mxclk);
                return;
        }
 
-       of_clk_add_provider(np, of_clk_src_simple_get, clk);
+       of_clk_add_hw_provider(np, of_clk_hw_simple_get, &h32mxclk->hw);
 }
 CLK_OF_DECLARE(of_sama5d4_clk_h32mx_setup, "atmel,sama5d4-clk-h32mx",
               of_sama5d4_clk_h32mx_setup);