2016-12-15 17:51:35

by Corentin Labbe

[permalink] [raw]
Subject: [PATCH] watchdog: octeon: Remove unneeded linux/miscdevice.h include

watchdog/octeon-wdt-main.c does not use any miscdevice so this patch
remove this unnecessary inclusion.

Signed-off-by: Corentin Labbe <[email protected]>
---
drivers/watchdog/octeon-wdt-main.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/watchdog/octeon-wdt-main.c b/drivers/watchdog/octeon-wdt-main.c
index 529182d..b5cdceb 100644
--- a/drivers/watchdog/octeon-wdt-main.c
+++ b/drivers/watchdog/octeon-wdt-main.c
@@ -56,7 +56,6 @@

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

-#include <linux/miscdevice.h>
#include <linux/interrupt.h>
#include <linux/watchdog.h>
#include <linux/cpumask.h>
--
2.10.2


2016-12-16 03:35:00

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH] watchdog: octeon: Remove unneeded linux/miscdevice.h include

On 12/15/2016 09:49 AM, Corentin Labbe wrote:
> watchdog/octeon-wdt-main.c does not use any miscdevice so this patch
> remove this unnecessary inclusion.
>
> Signed-off-by: Corentin Labbe <[email protected]>

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

> ---
> drivers/watchdog/octeon-wdt-main.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/watchdog/octeon-wdt-main.c b/drivers/watchdog/octeon-wdt-main.c
> index 529182d..b5cdceb 100644
> --- a/drivers/watchdog/octeon-wdt-main.c
> +++ b/drivers/watchdog/octeon-wdt-main.c
> @@ -56,7 +56,6 @@
>
> #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
>
> -#include <linux/miscdevice.h>
> #include <linux/interrupt.h>
> #include <linux/watchdog.h>
> #include <linux/cpumask.h>
>