diff mbox

[2/5] cpuidle / ACPI : remove pointless headers

Message ID 1350640292-22468-2-git-send-email-daniel.lezcano@linaro.org
State New
Headers show

Commit Message

Daniel Lezcano Oct. 19, 2012, 9:51 a.m. UTC
These different headers are not needed.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
 drivers/acpi/processor_idle.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

Comments

Rafael J. Wysocki Oct. 25, 2012, 11:36 p.m. UTC | #1
On Friday, October 19, 2012 11:51:29 AM Daniel Lezcano wrote:
> These different headers are not needed.
> 
> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

The kernel doesn't build for me with this patch applied (presumably
because the #defines from the previous patch were necessary after all).

Thanks,
Rafael


> ---
>  drivers/acpi/processor_idle.c |   13 -------------
>  1 files changed, 0 insertions(+), 13 deletions(-)
> 
> diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
> index 1f536a3..9aac69b 100644
> --- a/drivers/acpi/processor_idle.c
> +++ b/drivers/acpi/processor_idle.c
> @@ -28,19 +28,10 @@
>   * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   */
>  
> -#include <linux/kernel.h>
>  #include <linux/module.h>
> -#include <linux/init.h>
> -#include <linux/cpufreq.h>
> -#include <linux/slab.h>
> -#include <linux/acpi.h>
>  #include <linux/dmi.h>
> -#include <linux/moduleparam.h>
> -#include <linux/sched.h>	/* need_resched() */
> -#include <linux/pm_qos.h>
>  #include <linux/clockchips.h>
>  #include <linux/cpuidle.h>
> -#include <linux/irqflags.h>
>  
>  /*
>   * Include the apic definitions for x86 to have the APIC timer related defines
> @@ -52,12 +43,8 @@
>  #include <asm/apic.h>
>  #endif
>  
> -#include <asm/io.h>
> -#include <asm/uaccess.h>
> -
>  #include <acpi/acpi_bus.h>
>  #include <acpi/processor.h>
> -#include <asm/processor.h>
>  
>  #define PREFIX "ACPI: "
>  ACPI_MODULE_NAME("processor_idle");
>
diff mbox

Patch

diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 1f536a3..9aac69b 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -28,19 +28,10 @@ 
  * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  */
 
-#include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
-#include <linux/cpufreq.h>
-#include <linux/slab.h>
-#include <linux/acpi.h>
 #include <linux/dmi.h>
-#include <linux/moduleparam.h>
-#include <linux/sched.h>	/* need_resched() */
-#include <linux/pm_qos.h>
 #include <linux/clockchips.h>
 #include <linux/cpuidle.h>
-#include <linux/irqflags.h>
 
 /*
  * Include the apic definitions for x86 to have the APIC timer related defines
@@ -52,12 +43,8 @@ 
 #include <asm/apic.h>
 #endif
 
-#include <asm/io.h>
-#include <asm/uaccess.h>
-
 #include <acpi/acpi_bus.h>
 #include <acpi/processor.h>
-#include <asm/processor.h>
 
 #define PREFIX "ACPI: "
 ACPI_MODULE_NAME("processor_idle");