File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 5
5
// Author: Stephen Barber <[email protected] >
6
6
7
7
#include <linux/kernel.h>
8
+ #include <linux/mod_devicetable.h>
8
9
#include <linux/module.h>
9
10
#include <linux/platform_data/cros_ec_commands.h>
10
11
#include <linux/platform_data/cros_ec_proto.h>
@@ -392,18 +393,24 @@ static void cros_ec_rtc_remove(struct platform_device *pdev)
392
393
dev_err (dev , "failed to unregister notifier\n" );
393
394
}
394
395
396
+ static const struct platform_device_id cros_ec_rtc_id [] = {
397
+ { DRV_NAME , 0 },
398
+ {}
399
+ };
400
+ MODULE_DEVICE_TABLE (platform , cros_ec_rtc_id );
401
+
395
402
static struct platform_driver cros_ec_rtc_driver = {
396
403
.probe = cros_ec_rtc_probe ,
397
404
.remove_new = cros_ec_rtc_remove ,
398
405
.driver = {
399
406
.name = DRV_NAME ,
400
407
.pm = & cros_ec_rtc_pm_ops ,
401
408
},
409
+ .id_table = cros_ec_rtc_id ,
402
410
};
403
411
404
412
module_platform_driver (cros_ec_rtc_driver );
405
413
406
414
MODULE_DESCRIPTION ("RTC driver for Chrome OS ECs" );
407
415
MODULE_AUTHOR (
"Stephen Barber <[email protected] >" );
408
416
MODULE_LICENSE ("GPL v2" );
409
- MODULE_ALIAS ("platform:" DRV_NAME );
You can’t perform that action at this time.
0 commit comments