2016-12-15 18:05:56

by Corentin Labbe

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

watchdog/mpc8xxx_wdt.c does not use any miscdevice so this patch remove
this unnecessary inclusion.

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

diff --git a/drivers/watchdog/mpc8xxx_wdt.c b/drivers/watchdog/mpc8xxx_wdt.c
index 5f2273a..366e5c7 100644
--- a/drivers/watchdog/mpc8xxx_wdt.c
+++ b/drivers/watchdog/mpc8xxx_wdt.c
@@ -23,7 +23,6 @@
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/timer.h>
-#include <linux/miscdevice.h>
#include <linux/of_address.h>
#include <linux/of_platform.h>
#include <linux/module.h>
--
2.10.2


2016-12-16 03:35:29

by Guenter Roeck

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

On 12/15/2016 10:03 AM, Corentin Labbe wrote:
> watchdog/mpc8xxx_wdt.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/mpc8xxx_wdt.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/watchdog/mpc8xxx_wdt.c b/drivers/watchdog/mpc8xxx_wdt.c
> index 5f2273a..366e5c7 100644
> --- a/drivers/watchdog/mpc8xxx_wdt.c
> +++ b/drivers/watchdog/mpc8xxx_wdt.c
> @@ -23,7 +23,6 @@
> #include <linux/init.h>
> #include <linux/kernel.h>
> #include <linux/timer.h>
> -#include <linux/miscdevice.h>
> #include <linux/of_address.h>
> #include <linux/of_platform.h>
> #include <linux/module.h>
>