mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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: Simon Glass <sjg@chromium.org> Signed-off-by: Mario Six <mario.six@gdsys.cc>
This commit is contained in:
@ -13,8 +13,6 @@
|
||||
#include <dt-structs.h>
|
||||
#include <errno.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
static inline const struct clk_ops *clk_dev_ops(struct udevice *dev)
|
||||
{
|
||||
return (const struct clk_ops *)dev->driver->ops;
|
||||
|
@ -8,8 +8,6 @@
|
||||
#include <clk-uclass.h>
|
||||
#include <dm.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
struct clk_fixed_rate {
|
||||
unsigned long fixed_rate;
|
||||
};
|
||||
|
Reference in New Issue
Block a user