File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
drivers/platform/chrome/wilco_ec Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 10
10
#include <linux/acpi.h>
11
11
#include <linux/device.h>
12
12
#include <linux/ioport.h>
13
+ #include <linux/mod_devicetable.h>
13
14
#include <linux/module.h>
14
15
#include <linux/platform_data/wilco-ec.h>
15
16
#include <linux/platform_device.h>
@@ -150,13 +151,20 @@ static const struct acpi_device_id wilco_ec_acpi_device_ids[] = {
150
151
};
151
152
MODULE_DEVICE_TABLE (acpi , wilco_ec_acpi_device_ids );
152
153
154
+ static const struct platform_device_id wilco_ec_id [] = {
155
+ { DRV_NAME , 0 },
156
+ {}
157
+ };
158
+ MODULE_DEVICE_TABLE (platform , wilco_ec_id );
159
+
153
160
static struct platform_driver wilco_ec_driver = {
154
161
.driver = {
155
162
.name = DRV_NAME ,
156
163
.acpi_match_table = wilco_ec_acpi_device_ids ,
157
164
},
158
165
.probe = wilco_ec_probe ,
159
166
.remove_new = wilco_ec_remove ,
167
+ .id_table = wilco_ec_id ,
160
168
};
161
169
162
170
module_platform_driver (wilco_ec_driver );
165
173
MODULE_AUTHOR (
"Duncan Laurie <[email protected] >" );
166
174
MODULE_LICENSE ("GPL v2" );
167
175
MODULE_DESCRIPTION ("ChromeOS Wilco Embedded Controller driver" );
168
- MODULE_ALIAS ("platform:" DRV_NAME );
You can’t perform that action at this time.
0 commit comments