diff mbox series

[v2,1/4] ACPI / battery: drop inclusion of init.h

Message ID 20180724112734.15116-1-andriy.shevchenko@linux.intel.com (mailing list archive)
State Accepted, archived
Delegated to: Rafael Wysocki
Headers show
Series [v2,1/4] ACPI / battery: drop inclusion of init.h | expand

Commit Message

Andy Shevchenko July 24, 2018, 11:27 a.m. UTC
From: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>

The driver can be built as a module thus inclusion of init.h is
redundant in battery.c since it's always included by module.h.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/acpi/battery.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Rafael J. Wysocki July 26, 2018, 9:02 a.m. UTC | #1
On Tuesday, July 24, 2018 1:27:31 PM CEST Andy Shevchenko wrote:
> From: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
> 
> The driver can be built as a module thus inclusion of init.h is
> redundant in battery.c since it's always included by module.h.
> 
> Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/acpi/battery.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
> index c280e8e394d1..76ec929e989e 100644
> --- a/drivers/acpi/battery.c
> +++ b/drivers/acpi/battery.c
> @@ -27,7 +27,6 @@
>  #include <linux/list.h>
>  #include <linux/module.h>
>  #include <linux/mutex.h>
> -#include <linux/init.h>
>  #include <linux/types.h>
>  #include <linux/jiffies.h>
>  #include <linux/async.h>
> 

All [1-4/4] applied, thanks!


--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index c280e8e394d1..76ec929e989e 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -27,7 +27,6 @@ 
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/jiffies.h>
 #include <linux/async.h>