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/ctype.h>
11
11
#include <linux/debugfs.h>
12
12
#include <linux/fs.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>
@@ -265,17 +266,23 @@ static void wilco_ec_debugfs_remove(struct platform_device *pdev)
265
266
debugfs_remove_recursive (debug_info -> dir );
266
267
}
267
268
269
+ static const struct platform_device_id wilco_ec_debugfs_id [] = {
270
+ { DRV_NAME , 0 },
271
+ {}
272
+ };
273
+ MODULE_DEVICE_TABLE (platform , wilco_ec_debugfs_id );
274
+
268
275
static struct platform_driver wilco_ec_debugfs_driver = {
269
276
.driver = {
270
277
.name = DRV_NAME ,
271
278
},
272
279
.probe = wilco_ec_debugfs_probe ,
273
280
.remove_new = wilco_ec_debugfs_remove ,
281
+ .id_table = wilco_ec_debugfs_id ,
274
282
};
275
283
276
284
module_platform_driver (wilco_ec_debugfs_driver );
277
285
278
- MODULE_ALIAS ("platform:" DRV_NAME );
279
286
MODULE_AUTHOR (
"Nick Crews <[email protected] >" );
280
287
MODULE_LICENSE ("GPL v2" );
281
288
MODULE_DESCRIPTION ("Wilco EC debugfs driver" );
You can’t perform that action at this time.
0 commit comments