2020-02-21 02:08:11

by Anson Huang

[permalink] [raw]
Subject: [PATCH 1/3] watchdog: imx_sc_wdt: Remove unused includes

There is nothing in use from init.h/reboot.h, remove them.

Signed-off-by: Anson Huang <[email protected]>
---
drivers/watchdog/imx_sc_wdt.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/watchdog/imx_sc_wdt.c b/drivers/watchdog/imx_sc_wdt.c
index 8ed89f0..60a3246 100644
--- a/drivers/watchdog/imx_sc_wdt.c
+++ b/drivers/watchdog/imx_sc_wdt.c
@@ -6,13 +6,11 @@
#include <linux/arm-smccc.h>
#include <linux/firmware/imx/sci.h>
#include <linux/io.h>
-#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/of.h>
#include <linux/platform_device.h>
-#include <linux/reboot.h>
#include <linux/watchdog.h>

#define DEFAULT_TIMEOUT 60
--
2.7.4


2020-02-22 15:56:10

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH 1/3] watchdog: imx_sc_wdt: Remove unused includes

On 2/20/20 6:00 PM, Anson Huang wrote:
> There is nothing in use from init.h/reboot.h, remove them.
>
> Signed-off-by: Anson Huang <[email protected]>

Reviewed-by: Guenter Roeck <[email protected]>

> ---
> drivers/watchdog/imx_sc_wdt.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/watchdog/imx_sc_wdt.c b/drivers/watchdog/imx_sc_wdt.c
> index 8ed89f0..60a3246 100644
> --- a/drivers/watchdog/imx_sc_wdt.c
> +++ b/drivers/watchdog/imx_sc_wdt.c
> @@ -6,13 +6,11 @@
> #include <linux/arm-smccc.h>
> #include <linux/firmware/imx/sci.h>
> #include <linux/io.h>
> -#include <linux/init.h>
> #include <linux/kernel.h>
> #include <linux/module.h>
> #include <linux/moduleparam.h>
> #include <linux/of.h>
> #include <linux/platform_device.h>
> -#include <linux/reboot.h>
> #include <linux/watchdog.h>
>
> #define DEFAULT_TIMEOUT 60
>