aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/ec.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/ec.c')
-rw-r--r--drivers/acpi/ec.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index 2fe15060dcdc..bf88f1803801 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -1069,13 +1069,10 @@ static struct acpi_driver acpi_ec_driver = {
1069 }, 1069 },
1070}; 1070};
1071 1071
1072static int __init acpi_ec_init(void) 1072int __init acpi_ec_init(void)
1073{ 1073{
1074 int result = 0; 1074 int result = 0;
1075 1075
1076 if (acpi_disabled)
1077 return 0;
1078
1079 acpi_ec_dir = proc_mkdir(ACPI_EC_CLASS, acpi_root_dir); 1076 acpi_ec_dir = proc_mkdir(ACPI_EC_CLASS, acpi_root_dir);
1080 if (!acpi_ec_dir) 1077 if (!acpi_ec_dir)
1081 return -ENODEV; 1078 return -ENODEV;
@@ -1090,8 +1087,6 @@ static int __init acpi_ec_init(void)
1090 return result; 1087 return result;
1091} 1088}
1092 1089
1093subsys_initcall(acpi_ec_init);
1094
1095/* EC driver currently not unloadable */ 1090/* EC driver currently not unloadable */
1096#if 0 1091#if 0
1097static void __exit acpi_ec_exit(void) 1092static void __exit acpi_ec_exit(void)