Skip to contentSkip to conversation

acerhdf: Clean up includes

PATCH In review Jean Delvare 2 participants 2 messages Apr 24, 2011 – Apr 26, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acerhdf: Clean up includes

* The acerhdf driver isn't an ACPI driver, so it needs not include <acpi/acpi_drivers.h>. All it uses is ec_read() and ec_write(), for which <linux/acpi.h> is sufficient.
* I couldn't find any reason why <linux/fs.h> and <linux/sched.h> were included.

This should avoid unneeded rebuilds of the acerhdf driver.

Cc Peter Feuerer <[email protected]>
Cc Matthew Garrett <[email protected]>
---
 drivers/platform/x86/acerhdf.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/platform/x86/acerhdf.c +1 -3
@@ -35,10 +35,8 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/fs.h>
 #include <linux/dmi.h>
-#include <acpi/acpi_drivers.h>
-#include <linux/sched.h>
+#include <linux/acpi.h>
 #include <linux/thermal.h>
 #include <linux/platform_device.h>
 
Signature · 1 line
Jean Delvare
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Jean Delvare

* The acerhdf driver isn't an ACPI driver, so it needs not include <acpi/acpi_drivers.h>. All it uses is ec_read() and ec_write(), for which <linux/acpi.h> is sufficient.
* I couldn't find any reason why <linux/fs.h> and <linux/sched.h> were included.

This should avoid unneeded rebuilds of the acerhdf driver.