diff mbox series

watchdog: cadence: Remove DECLARE_GLOBAL_DATA_PTR from driver

Message ID 1d46d5097e0ea6942c94dca68aeabd6dca4e6f2a.1583740233.git.michal.simek@xilinx.com
State Accepted
Commit f7e296d6f5121b2d5e02294ee35fb725e3c28fed
Delegated to: Michal Simek
Headers show
Series watchdog: cadence: Remove DECLARE_GLOBAL_DATA_PTR from driver | expand

Commit Message

Michal Simek March 9, 2020, 7:50 a.m. UTC
gd is not used in the driver that's why declaration is not needed at all.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 drivers/watchdog/cdns_wdt.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Michal Simek April 6, 2020, 11:03 a.m. UTC | #1
po 9. 3. 2020 v 8:50 odesílatel Michal Simek <michal.simek@xilinx.com> napsal:
>
> gd is not used in the driver that's why declaration is not needed at all.
>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
>  drivers/watchdog/cdns_wdt.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/watchdog/cdns_wdt.c b/drivers/watchdog/cdns_wdt.c
> index 775f06a6e1c2..5bf02605a884 100644
> --- a/drivers/watchdog/cdns_wdt.c
> +++ b/drivers/watchdog/cdns_wdt.c
> @@ -15,8 +15,6 @@
>  #include <linux/err.h>
>  #include <linux/io.h>
>
> -DECLARE_GLOBAL_DATA_PTR;
> -
>  struct cdns_regs {
>         u32 zmr;        /* WD Zero mode register, offset - 0x0 */
>         u32 ccr;        /* Counter Control Register offset - 0x4 */
> --
> 2.25.1
>

Applied.
M
diff mbox series

Patch

diff --git a/drivers/watchdog/cdns_wdt.c b/drivers/watchdog/cdns_wdt.c
index 775f06a6e1c2..5bf02605a884 100644
--- a/drivers/watchdog/cdns_wdt.c
+++ b/drivers/watchdog/cdns_wdt.c
@@ -15,8 +15,6 @@ 
 #include <linux/err.h>
 #include <linux/io.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 struct cdns_regs {
 	u32 zmr;	/* WD Zero mode register, offset - 0x0 */
 	u32 ccr;	/* Counter Control Register offset - 0x4 */