Merge branch 'bjorn-notify' into release
authorLen Brown <len.brown@intel.com>
Wed, 24 Jun 2009 05:22:20 +0000 (01:22 -0400)
committerLen Brown <len.brown@intel.com>
Wed, 24 Jun 2009 05:22:20 +0000 (01:22 -0400)
Conflicts:
drivers/platform/x86/eeepc-laptop.c

Signed-off-by: Len Brown <len.brown@intel.com>
1  2 
drivers/platform/x86/eeepc-laptop.c
include/acpi/acpi_bus.h

@@@ -180,7 -180,7 +180,8 @@@ static struct key_entry eeepc_keymap[] 
   */
  static int eeepc_hotk_add(struct acpi_device *device);
  static int eeepc_hotk_remove(struct acpi_device *device, int type);
 +static int eeepc_hotk_resume(struct acpi_device *device);
+ static void eeepc_hotk_notify(struct acpi_device *device, u32 event);
  
  static const struct acpi_device_id eeepc_device_ids[] = {
        {EEEPC_HOTK_HID, 0},
@@@ -195,7 -196,7 +197,8 @@@ static struct acpi_driver eeepc_hotk_dr
        .ops = {
                .add = eeepc_hotk_add,
                .remove = eeepc_hotk_remove,
 +              .resume = eeepc_hotk_resume,
+               .notify = eeepc_hotk_notify,
        },
  };
  
@@@ -547,18 -569,10 +550,18 @@@ static void eeepc_rfkill_hotplug(void
                }
        }
  
 -      rfkill_force_state(ehotk->eeepc_wlan_rfkill, state);
 +      rfkill_set_sw_state(ehotk->eeepc_wlan_rfkill, blocked);
 +}
 +
 +static void eeepc_rfkill_notify(acpi_handle handle, u32 event, void *data)
 +{
 +      if (event != ACPI_NOTIFY_BUS_CHECK)
 +              return;
 +
 +      eeepc_rfkill_hotplug();
  }
  
- static void eeepc_hotk_notify(acpi_handle handle, u32 event, void *data)
+ static void eeepc_hotk_notify(struct acpi_device *device, u32 event)
  {
        static struct key_entry *key;
        u16 count;
Simple merge