]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/clk/clk-cdce706.c
Merge branch 'clk-shmobile-for-4.2' of git://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / drivers / clk / clk-cdce706.c
index c386ad25beb4af6abbd58e769ee2f165ff28f6d5..f01164fada5dafd4e80d0eac8f5f0242847399dd 100644 (file)
@@ -58,7 +58,7 @@
 #define CDCE706_CLKOUT_DIVIDER_MASK    0x7
 #define CDCE706_CLKOUT_ENABLE_MASK     0x8
 
-static struct regmap_config cdce706_regmap_config = {
+static const struct regmap_config cdce706_regmap_config = {
        .reg_bits = 8,
        .val_bits = 8,
        .val_format_endian = REGMAP_ENDIAN_NATIVE,
@@ -94,7 +94,7 @@ static const char * const cdce706_source_name[] = {
        "clk_in0", "clk_in1",
 };
 
-static const char *cdce706_clkin_name[] = {
+static const char * const cdce706_clkin_name[] = {
        "clk_in",
 };
 
@@ -102,7 +102,7 @@ static const char * const cdce706_pll_name[] = {
        "pll1", "pll2", "pll3",
 };
 
-static const char *cdce706_divider_parent_name[] = {
+static const char * const cdce706_divider_parent_name[] = {
        "clk_in", "pll1", "pll2", "pll2", "pll3",
 };
 
@@ -666,6 +666,7 @@ static int cdce706_probe(struct i2c_client *client,
 
 static int cdce706_remove(struct i2c_client *client)
 {
+       of_clk_del_provider(client->dev.of_node);
        return 0;
 }