提交 7fe1b063 编写于 作者: M Mario Six 提交者: Simon Glass

clk: Remove superfluous gd declarations

The clk uclass was converted to support a live device tree recently,
hence the global data pointer declarations are no longer needed.
Reviewed-by: NSimon Glass <sjg@chromium.org>
Signed-off-by: NMario Six <mario.six@gdsys.cc>
上级 e2db9e7a
...@@ -13,8 +13,6 @@ ...@@ -13,8 +13,6 @@
#include <dt-structs.h> #include <dt-structs.h>
#include <errno.h> #include <errno.h>
DECLARE_GLOBAL_DATA_PTR;
static inline const struct clk_ops *clk_dev_ops(struct udevice *dev) static inline const struct clk_ops *clk_dev_ops(struct udevice *dev)
{ {
return (const struct clk_ops *)dev->driver->ops; return (const struct clk_ops *)dev->driver->ops;
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
#include <clk-uclass.h> #include <clk-uclass.h>
#include <dm.h> #include <dm.h>
DECLARE_GLOBAL_DATA_PTR;
struct clk_fixed_rate { struct clk_fixed_rate {
unsigned long fixed_rate; unsigned long fixed_rate;
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册