2016-12-15 17:13:40

by Corentin Labbe

[permalink] [raw]
Subject: [PATCH] tpm/st33zp24: Remove unneeded linux/miscdevice.h include

tpm/st33zp24/st33zp24.c does not use any miscdevice so this patch remove
this unnecessary inclusion.

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

diff --git a/drivers/char/tpm/st33zp24/st33zp24.c b/drivers/char/tpm/st33zp24/st33zp24.c
index 6f060c7..e8e0f7c 100644
--- a/drivers/char/tpm/st33zp24/st33zp24.c
+++ b/drivers/char/tpm/st33zp24/st33zp24.c
@@ -18,7 +18,6 @@

#include <linux/module.h>
#include <linux/fs.h>
-#include <linux/miscdevice.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/wait.h>
--
2.10.2


2016-12-19 13:40:45

by Jarkko Sakkinen

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

On Thu, Dec 15, 2016 at 06:10:17PM +0100, Corentin Labbe wrote:
> tpm/st33zp24/st33zp24.c does not use any miscdevice so this patch remove
> this unnecessary inclusion.
>
> Signed-off-by: Corentin Labbe <[email protected]>

Reviewed-by: Jarkko Sakkinen <[email protected]>

Applied.

/Jarkko

> ---
> drivers/char/tpm/st33zp24/st33zp24.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/char/tpm/st33zp24/st33zp24.c b/drivers/char/tpm/st33zp24/st33zp24.c
> index 6f060c7..e8e0f7c 100644
> --- a/drivers/char/tpm/st33zp24/st33zp24.c
> +++ b/drivers/char/tpm/st33zp24/st33zp24.c
> @@ -18,7 +18,6 @@
>
> #include <linux/module.h>
> #include <linux/fs.h>
> -#include <linux/miscdevice.h>
> #include <linux/kernel.h>
> #include <linux/delay.h>
> #include <linux/wait.h>
> --
> 2.10.2
>