]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: Remove superfluous gd declarations
authorMario Six <mario.six@gdsys.cc>
Mon, 15 Jan 2018 10:06:53 +0000 (11:06 +0100)
committerSimon Glass <sjg@chromium.org>
Sun, 21 Jan 2018 17:01:02 +0000 (10:01 -0700)
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>
drivers/clk/clk-uclass.c
drivers/clk/clk_fixed_rate.c

index 32be2e85c5ad26ae50b8d170a76f6759fa5e94e9..fbea72091b190c43fdf411a0d96f721735264faf 100644 (file)
@@ -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;
index 9dd6bc5726d3fe853b315c17af992aa1c95598e5..c9a9f0a20b6f1628a0792fe40d8e36119e916d3f 100644 (file)
@@ -8,8 +8,6 @@
 #include <clk-uclass.h>
 #include <dm.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 struct clk_fixed_rate {
        unsigned long fixed_rate;
 };