ad->clk_bypass = __clk_get_hw(clk);
 
        name = ti_dt_clk_name(node);
-       clk = ti_clk_register_omap_hw(NULL, &clk_hw->hw, name);
+       clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name);
        if (!IS_ERR(clk)) {
                of_clk_add_provider(node, of_clk_src_simple_get, clk);
                kfree(init->parent_names);
                goto cleanup;
 
        name = ti_dt_clk_name(node);
-       clk = ti_clk_register_omap_hw(NULL, &clk_hw->hw, name);
+       clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name);
        if (!IS_ERR(clk)) {
                of_clk_add_provider(node, of_clk_src_simple_get, clk);
                kfree(init);
 
 
        init.parent_names = parent_names;
 
-       clk = ti_clk_register(NULL, &clk_hw->hw, name);
+       clk = of_ti_clk_register(node, &clk_hw->hw, name);
 
        if (!IS_ERR(clk)) {
                of_clk_add_provider(node, of_clk_src_simple_get, clk);
 
                clkspec.np = np;
                clk = of_clk_get_from_provider(&clkspec);
 
-               ti_clk_add_alias(NULL, clk, ti_dt_clk_name(np));
+               ti_clk_add_alias(clk, ti_dt_clk_name(np));
        }
 }
 
 
 /**
  * ti_clk_add_alias - add a clock alias for a TI clock
- * @dev: device alias for this clock
  * @clk: clock handle to create alias for
  * @con: connection ID for this clock
  *
  * and assigns the data to it. Returns 0 if successful, negative error
  * value otherwise.
  */
-int ti_clk_add_alias(struct device *dev, struct clk *clk, const char *con)
+int ti_clk_add_alias(struct clk *clk, const char *con)
 {
        struct clk_lookup *cl;
 
        if (!cl)
                return -ENOMEM;
 
-       if (dev)
-               cl->dev_id = dev_name(dev);
        cl->con_id = con;
        cl->clk = clk;
 
 }
 
 /**
- * ti_clk_register - register a TI clock to the common clock framework
- * @dev: device for this clock
+ * of_ti_clk_register - register a TI clock to the common clock framework
+ * @node: device node for this clock
  * @hw: hardware clock handle
  * @con: connection ID for this clock
  *
  * alias for it. Returns a handle to the registered clock if successful,
  * ERR_PTR value in failure.
  */
-struct clk *ti_clk_register(struct device *dev, struct clk_hw *hw,
-                           const char *con)
+struct clk *of_ti_clk_register(struct device_node *node, struct clk_hw *hw,
+                              const char *con)
 {
        struct clk *clk;
        int ret;
 
-       clk = clk_register(dev, hw);
-       if (IS_ERR(clk))
-               return clk;
+       ret = of_clk_hw_register(node, hw);
+       if (ret)
+               return ERR_PTR(ret);
 
-       ret = ti_clk_add_alias(dev, clk, con);
+       clk = hw->clk;
+       ret = ti_clk_add_alias(clk, con);
        if (ret) {
                clk_unregister(clk);
                return ERR_PTR(ret);
 }
 
 /**
- * ti_clk_register_omap_hw - register a clk_hw_omap to the clock framework
- * @dev: device for this clock
+ * of_ti_clk_register_omap_hw - register a clk_hw_omap to the clock framework
+ * @node: device node for this clock
  * @hw: hardware clock handle
  * @con: connection ID for this clock
  *
  * Returns a handle to the registered clock if successful, ERR_PTR value
  * in failure.
  */
-struct clk *ti_clk_register_omap_hw(struct device *dev, struct clk_hw *hw,
-                                   const char *con)
+struct clk *of_ti_clk_register_omap_hw(struct device_node *node,
+                                      struct clk_hw *hw, const char *con)
 {
        struct clk *clk;
        struct clk_hw_omap *oclk;
 
-       clk = ti_clk_register(dev, hw, con);
+       clk = of_ti_clk_register(node, hw, con);
        if (IS_ERR(clk))
                return clk;
 
 
        init.ops = ops;
        init.flags = 0;
 
-       clk = ti_clk_register(NULL, clk_hw, init.name);
+       clk = of_ti_clk_register(node, clk_hw, init.name);
        if (IS_ERR_OR_NULL(clk)) {
                ret = -EINVAL;
                goto cleanup;
                init.ops = &omap4_clkctrl_clk_ops;
                hw->hw.init = &init;
 
-               clk = ti_clk_register_omap_hw(NULL, &hw->hw, init.name);
+               clk = of_ti_clk_register_omap_hw(node, &hw->hw, init.name);
                if (IS_ERR_OR_NULL(clk))
                        goto cleanup;
 
 
 
 typedef void (*ti_of_clk_init_cb_t)(void *, struct device_node *);
 
-struct clk *ti_clk_register(struct device *dev, struct clk_hw *hw,
-                           const char *con);
-struct clk *ti_clk_register_omap_hw(struct device *dev, struct clk_hw *hw,
-                                   const char *con);
+struct clk *of_ti_clk_register(struct device_node *node, struct clk_hw *hw,
+                              const char *con);
+struct clk *of_ti_clk_register_omap_hw(struct device_node *node,
+                                      struct clk_hw *hw, const char *con);
 const char *ti_dt_clk_name(struct device_node *np);
-int ti_clk_add_alias(struct device *dev, struct clk *clk, const char *con);
+int ti_clk_add_alias(struct clk *clk, const char *con);
 void ti_clk_add_aliases(void);
 
 void ti_clk_latch(struct clk_omap_reg *reg, s8 shift);
 
                                     &ti_composite_gate_ops, 0);
 
        if (!IS_ERR(clk)) {
-               ret = ti_clk_add_alias(NULL, clk, name);
+               ret = ti_clk_add_alias(clk, name);
                if (ret) {
                        clk_unregister(clk);
                        goto cleanup;
 
        div->hw.init = &init;
 
        /* register the clock */
-       clk = ti_clk_register(NULL, &div->hw, name);
+       clk = of_ti_clk_register(node, &div->hw, name);
 
        if (IS_ERR(clk))
                kfree(div);
 
 
        /* register the clock */
        name = ti_dt_clk_name(node);
-       clk = ti_clk_register_omap_hw(NULL, &clk_hw->hw, name);
+       clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name);
 
        if (!IS_ERR(clk)) {
                of_clk_add_provider(node, of_clk_src_simple_get, clk);
 #endif
 
        /* register the clock */
-       clk = ti_clk_register_omap_hw(NULL, &clk_hw->hw, name);
+       clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name);
 
        if (IS_ERR(clk))
                kfree(clk_hw);
 
        if (!IS_ERR(clk)) {
                of_clk_add_provider(node, of_clk_src_simple_get, clk);
                of_ti_clk_autoidle_setup(node);
-               ti_clk_add_alias(NULL, clk, clk_name);
+               ti_clk_add_alias(clk, clk_name);
        }
 }
 CLK_OF_DECLARE(ti_fixed_factor_clk, "ti,fixed-factor-clock",
 
        return ret;
 }
 
-static struct clk *_register_gate(struct device *dev, const char *name,
+static struct clk *_register_gate(struct device_node *node, const char *name,
                                  const char *parent_name, unsigned long flags,
                                  struct clk_omap_reg *reg, u8 bit_idx,
                                  u8 clk_gate_flags, const struct clk_ops *ops,
 
        init.flags = flags;
 
-       clk = ti_clk_register_omap_hw(NULL, &clk_hw->hw, name);
+       clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name);
 
        if (IS_ERR(clk))
                kfree(clk_hw);
                clk_gate_flags |= INVERT_ENABLE;
 
        name = ti_dt_clk_name(node);
-       clk = _register_gate(NULL, name, parent_name, flags, ®,
+       clk = _register_gate(node, name, parent_name, flags, ®,
                             enable_bit, clk_gate_flags, ops, hw_ops);
 
        if (!IS_ERR(clk))
 
        .is_enabled     = &omap2_dflt_clk_is_enabled,
 };
 
-static struct clk *_register_interface(struct device *dev, const char *name,
+static struct clk *_register_interface(struct device_node *node,
+                                      const char *name,
                                       const char *parent_name,
                                       struct clk_omap_reg *reg, u8 bit_idx,
                                       const struct clk_hw_omap_ops *ops)
        init.num_parents = 1;
        init.parent_names = &parent_name;
 
-       clk = ti_clk_register_omap_hw(NULL, &clk_hw->hw, name);
+       clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name);
 
        if (IS_ERR(clk))
                kfree(clk_hw);
        }
 
        name = ti_dt_clk_name(node);
-       clk = _register_interface(NULL, name, parent_name, ®,
+       clk = _register_interface(node, name, parent_name, ®,
                                  enable_bit, ops);
 
        if (!IS_ERR(clk))
 
        .restore_context = clk_mux_restore_context,
 };
 
-static struct clk *_register_mux(struct device *dev, const char *name,
+static struct clk *_register_mux(struct device_node *node, const char *name,
                                 const char * const *parent_names,
                                 u8 num_parents, unsigned long flags,
                                 struct clk_omap_reg *reg, u8 shift, u32 mask,
        mux->table = table;
        mux->hw.init = &init;
 
-       clk = ti_clk_register(dev, &mux->hw, name);
+       clk = of_ti_clk_register(node, &mux->hw, name);
 
        if (IS_ERR(clk))
                kfree(mux);
        mask = (1 << fls(mask)) - 1;
 
        name = ti_dt_clk_name(node);
-       clk = _register_mux(NULL, name, parent_names, num_parents,
+       clk = _register_mux(node, name, parent_names, num_parents,
                            flags, ®, shift, mask, latch, clk_mux_flags,
                            NULL);