* @brief Free memory space of clock object * * @param clk point to clock * */
| 105 | * |
| 106 | */ |
| 107 | static void clk_free(struct rt_clk *clk) |
| 108 | { |
| 109 | struct rt_clk_node *clk_np = clk->clk_np; |
| 110 | |
| 111 | if (clk_np && clk_np->ops->finit) |
| 112 | { |
| 113 | clk_np->ops->finit(clk); |
| 114 | } |
| 115 | |
| 116 | rt_free(clk); |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * @brief Allocate memory space and creat clock object |
no test coverage detected