classmate-laptop: use a single MODULE_DEVICE_TABLE to get correct aliases
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Tue, 9 Feb 2010 22:37:27 +0000 (17:37 -0500)
committerMatthew Garrett <mjg@redhat.com>
Thu, 25 Feb 2010 16:50:52 +0000 (11:50 -0500)
commit02e77a55f7b7e36888e39c62439fedb90ae4e808
tree98cfa14ab0f099ac24c0a9ddc2a29f7367b79d25
parentc6760ac4268b6dbe03d74e5faef35bc862a82542
classmate-laptop: use a single MODULE_DEVICE_TABLE to get correct aliases

Instead of a MODULE_DEVICE_TABLE for every acpi_driver ids table, we
create a table containing all ids to export to get a module alias for
each one.

This will fix automatic loading of the driver when one of the ACPI
devices is not present (like the accelerometer, which is not present in
some models).

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
drivers/platform/x86/classmate-laptop.c