Merge branch 'clk-next-unregister' into clk-next
authorMike Turquette <mturquette@linaro.org>
Tue, 31 Dec 2013 19:35:12 +0000 (11:35 -0800)
committerMike Turquette <mturquette@linaro.org>
Tue, 31 Dec 2013 19:35:12 +0000 (11:35 -0800)
Conflicts:
drivers/clk/clk.c

1  2 
drivers/clk/clk.c
include/linux/clk-private.h

index b7f6e99e61ebff9d49ba457923ad9f68c580d24c,da7b33e4c5a25bf6d934dfabdd396bd1bf46b9c6..e3e03270b95e06498b1f650860f6dcc9b1da6f9a
@@@ -1861,6 -1794,9 +1881,7 @@@ int __clk_init(struct device *dev, stru
        if (clk->ops->init)
                clk->ops->init(clk->hw);
  
 -      clk_debug_register(clk);
 -
+       kref_init(&clk->ref);
  out:
        clk_prepare_unlock();
  
index 5fb086b06c833d0078aa2a827b5aaef6dc3509d6,72c65e05450b2d48df70716d2a694b4d624177a9..efbf70b9fd847f01fb5b623210ad60ee5dc54bdf
@@@ -45,9 -48,10 +49,10 @@@ struct clk 
        struct hlist_head       children;
        struct hlist_node       child_node;
        unsigned int            notifier_count;
 -#ifdef CONFIG_COMMON_CLK_DEBUG
 +#ifdef CONFIG_DEBUG_FS
        struct dentry           *dentry;
  #endif
+       struct kref             ref;
  };
  
  /*