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 7
7
8
8
#include <linux/ktime.h>
9
9
#include <linux/math64.h>
10
+ #include <linux/mod_devicetable.h>
10
11
#include <linux/module.h>
11
12
#include <linux/platform_data/cros_ec_commands.h>
12
13
#include <linux/platform_data/cros_ec_proto.h>
@@ -249,17 +250,23 @@ static int __maybe_unused cros_usbpd_logger_suspend(struct device *dev)
249
250
static SIMPLE_DEV_PM_OPS (cros_usbpd_logger_pm_ops , cros_usbpd_logger_suspend ,
250
251
cros_usbpd_logger_resume ) ;
251
252
253
+ static const struct platform_device_id cros_usbpd_logger_id [] = {
254
+ { DRV_NAME , 0 },
255
+ {}
256
+ };
257
+ MODULE_DEVICE_TABLE (platform , cros_usbpd_logger_id );
258
+
252
259
static struct platform_driver cros_usbpd_logger_driver = {
253
260
.driver = {
254
261
.name = DRV_NAME ,
255
262
.pm = & cros_usbpd_logger_pm_ops ,
256
263
},
257
264
.probe = cros_usbpd_logger_probe ,
258
265
.remove_new = cros_usbpd_logger_remove ,
266
+ .id_table = cros_usbpd_logger_id ,
259
267
};
260
268
261
269
module_platform_driver (cros_usbpd_logger_driver );
262
270
263
271
MODULE_LICENSE ("GPL v2" );
264
272
MODULE_DESCRIPTION ("Logging driver for ChromeOS EC USBPD Charger." );
265
- MODULE_ALIAS ("platform:" DRV_NAME );
You can’t perform that action at this time.
0 commit comments