wmi: Add support for module autoloading
authorMatthew Garrett <mjg@redhat.com>
Wed, 4 Nov 2009 19:17:53 +0000 (14:17 -0500)
committerLen Brown <len.brown@intel.com>
Thu, 5 Nov 2009 17:29:37 +0000 (12:29 -0500)
commit1caab3c1a90be3aa4ec3599409d8fe044b077478
tree1c41c27e2828d31b7ca838f958e9c6af364c69a1
parentb419148e567728f6af0c3b01965c1cc141e3e13a
wmi: Add support for module autoloading

WMI provides interface-specific GUIDs that are exported from modules as
modalises, but the core currently generates no events to trigger module
loading. This patch adds support for registering devices for each WMI GUID
and generating the appropriate uevent.

Based heavily on a patch by Carlos Corbacho (<carlos@strangeworlds.co.uk>).

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Tested-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Acked-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/wmi.c