فهرست منبع

Merge branch 'misc' into release

Len Brown 16 سال پیش
والد
کامیت
d59733c1e5
4فایلهای تغییر یافته به همراه7 افزوده شده و 3 حذف شده
  1. 2 2
      drivers/acpi/Kconfig
  2. 1 0
      drivers/acpi/ac.c
  3. 3 0
      drivers/acpi/button.c
  4. 1 1
      drivers/platform/x86/fujitsu-laptop.c

+ 2 - 2
drivers/acpi/Kconfig

@@ -218,10 +218,10 @@ config ACPI_PROCESSOR_AGGREGATOR
 	depends on X86
 	depends on X86
 	help
 	help
 	  ACPI 4.0 defines processor Aggregator, which enables OS to perform
 	  ACPI 4.0 defines processor Aggregator, which enables OS to perform
-	  specfic processor configuration and control that applies to all
+	  specific processor configuration and control that applies to all
 	  processors in the platform. Currently only logical processor idling
 	  processors in the platform. Currently only logical processor idling
 	  is defined, which is to reduce power consumption. This driver
 	  is defined, which is to reduce power consumption. This driver
-	  support the new device.
+	  supports the new device.
 
 
 config ACPI_THERMAL
 config ACPI_THERMAL
 	tristate "Thermal Zone"
 	tristate "Thermal Zone"

+ 1 - 0
drivers/acpi/ac.c

@@ -245,6 +245,7 @@ static void acpi_ac_notify(struct acpi_device *device, u32 event)
 		acpi_bus_generate_netlink_event(device->pnp.device_class,
 		acpi_bus_generate_netlink_event(device->pnp.device_class,
 						  dev_name(&device->dev), event,
 						  dev_name(&device->dev), event,
 						  (u32) ac->state);
 						  (u32) ac->state);
+		acpi_notifier_call_chain(device, event, (u32) ac->state);
 #ifdef CONFIG_ACPI_SYSFS_POWER
 #ifdef CONFIG_ACPI_SYSFS_POWER
 		kobject_uevent(&ac->charger.dev->kobj, KOBJ_CHANGE);
 		kobject_uevent(&ac->charger.dev->kobj, KOBJ_CHANGE);
 #endif
 #endif

+ 3 - 0
drivers/acpi/button.c

@@ -251,6 +251,9 @@ int acpi_lid_open(void)
 	acpi_status status;
 	acpi_status status;
 	unsigned long long state;
 	unsigned long long state;
 
 
+	if (!lid_device)
+		return -ENODEV;
+
 	status = acpi_evaluate_integer(lid_device->handle, "_LID", NULL,
 	status = acpi_evaluate_integer(lid_device->handle, "_LID", NULL,
 				       &state);
 				       &state);
 	if (ACPI_FAILURE(status))
 	if (ACPI_FAILURE(status))

+ 1 - 1
drivers/platform/x86/fujitsu-laptop.c

@@ -944,7 +944,7 @@ static int acpi_fujitsu_hotkey_remove(struct acpi_device *device, int type)
 	struct fujitsu_hotkey_t *fujitsu_hotkey = acpi_driver_data(device);
 	struct fujitsu_hotkey_t *fujitsu_hotkey = acpi_driver_data(device);
 	struct input_dev *input = fujitsu_hotkey->input;
 	struct input_dev *input = fujitsu_hotkey->input;
 
 
-#ifdef CONFIG_LEDS_CLASS
+#if defined(CONFIG_LEDS_CLASS) || defined(CONFIG_LEDS_CLASS_MODULE)
 	if (fujitsu_hotkey->logolamp_registered)
 	if (fujitsu_hotkey->logolamp_registered)
 		led_classdev_unregister(&logolamp_led);
 		led_classdev_unregister(&logolamp_led);