File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 5
5
* Copyright 2020 Google LLC.
6
6
*/
7
7
8
+ #include <linux/mod_devicetable.h>
8
9
#include <linux/module.h>
9
10
#include <linux/notifier.h>
10
11
#include <linux/platform_data/cros_ec_commands.h>
@@ -367,16 +368,22 @@ static int __maybe_unused cros_pchg_resume(struct device *dev)
367
368
368
369
static SIMPLE_DEV_PM_OPS (cros_pchg_pm_ops , NULL, cros_pchg_resume ) ;
369
370
371
+ static const struct platform_device_id cros_pchg_id [] = {
372
+ { DRV_NAME , 0 },
373
+ {}
374
+ };
375
+ MODULE_DEVICE_TABLE (platform , cros_pchg_id );
376
+
370
377
static struct platform_driver cros_pchg_driver = {
371
378
.driver = {
372
379
.name = DRV_NAME ,
373
380
.pm = & cros_pchg_pm_ops ,
374
381
},
375
- .probe = cros_pchg_probe
382
+ .probe = cros_pchg_probe ,
383
+ .id_table = cros_pchg_id ,
376
384
};
377
385
378
386
module_platform_driver (cros_pchg_driver );
379
387
380
388
MODULE_LICENSE ("GPL" );
381
389
MODULE_DESCRIPTION ("ChromeOS EC peripheral device charger" );
382
- MODULE_ALIAS ("platform:" DRV_NAME );
You can’t perform that action at this time.
0 commit comments