CHROMIUM: chromeos_laptop: Add MODULE_DEVICE_TABLE
authorBenson Leung <bleung@chromium.org>
Wed, 30 Jan 2013 00:23:05 +0000 (16:23 -0800)
committerChromeBot <chrome-bot@google.com>
Tue, 16 Apr 2013 03:40:07 +0000 (20:40 -0700)
If chromeos_laptop is built as a module, this will register
this driver as handling the various systems by dmi match,
so input devices, light sensors, and keyboard backlight are
still autoloaded on boot.

Signed-off-by: Benson Leung <bleung@chromium.org>
BUG=chromium-os:38363
TEST=Modify chromeos/config/x86_64/common.config to set
CONFIG_CHROMEOS_LAPTOP=m
build, load this kernel and modules onto Lumpy.
Check that on boot, trackpad works without modprobing
for chromeos_laptop.

Change-Id: Ib0a8f2b1228fc208e17c716d545818ab8b823952
Reviewed-on: https://gerrit.chromium.org/gerrit/42269
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Chung-yih Wang <cywang@chromium.org>
Tested-by: Chung-yih Wang <cywang@chromium.org>
Tested-by: Benson Leung <bleung@chromium.org>
drivers/platform/x86/chromeos_laptop.c

index ff70017..2b2377c 100644 (file)
@@ -440,6 +440,7 @@ static const struct __initdata dmi_system_id chromeos_laptop_dmi_table[] = {
        },
        { }
 };
+MODULE_DEVICE_TABLE(dmi, chromeos_laptop_dmi_table);
 
 static int __init chromeos_laptop_init(void)
 {