diff mbox series

[U-Boot,013/080] clk: Remove superfluous gd declarations

Message ID 20170929125238.26226-13-mario.six@gdsys.cc
State Accepted
Commit 7fe1b063d8eef2549bd53d618dcecb6723e1354c
Delegated to: Wolfgang Denk
Headers show
Series [U-Boot,001/080] mpc8308rdb: Fix style violation | expand

Commit Message

Mario Six Sept. 29, 2017, 12:51 p.m. UTC
The clk uclass was converted to support a live device tree recently,
hence the global data pointer declarations are no longer needed.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
---
 drivers/clk/clk-uclass.c     | 2 --
 drivers/clk/clk_fixed_rate.c | 2 --
 2 files changed, 4 deletions(-)

Comments

Simon Glass Oct. 9, 2017, 4:46 a.m. UTC | #1
On 29 September 2017 at 06:51, Mario Six <mario.six@gdsys.cc> wrote:
> The clk uclass was converted to support a live device tree recently,
> hence the global data pointer declarations are no longer needed.
>
> Signed-off-by: Mario Six <mario.six@gdsys.cc>
> ---
>  drivers/clk/clk-uclass.c     | 2 --
>  drivers/clk/clk_fixed_rate.c | 2 --
>  2 files changed, 4 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c
index 32be2e85c5..fbea72091b 100644
--- a/drivers/clk/clk-uclass.c
+++ b/drivers/clk/clk-uclass.c
@@ -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;
diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c
index 9dd6bc5726..c9a9f0a20b 100644
--- a/drivers/clk/clk_fixed_rate.c
+++ b/drivers/clk/clk_fixed_rate.c
@@ -8,8 +8,6 @@ 
 #include <clk-uclass.h>
 #include <dm.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 struct clk_fixed_rate {
 	unsigned long fixed_rate;
 };