Created
February 5, 2016 04:39
-
-
Save wens/25ca5cd988e242d6d163 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c | |
index a860322e3d59..80dfecc0faad 100644 | |
--- a/drivers/clk/sunxi/clk-sunxi.c | |
+++ b/drivers/clk/sunxi/clk-sunxi.c | |
@@ -707,9 +707,10 @@ static struct clk * __init sunxi_mux_clk_setup(struct device_node *node, | |
pr_warn("%s: failed to register mux clock %s: %ld\n", __func__, | |
clk_name, PTR_ERR(clk)); | |
goto out_unmap; | |
+ } | |
of_clk_add_provider(node, of_clk_src_simple_get, clk); | |
- return; | |
+ return clk; | |
out_unmap: | |
iounmap(reg); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment