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 6
6
*/
7
7
8
8
#include <linux/acpi.h>
9
+ #include <linux/mod_devicetable.h>
9
10
#include <linux/module.h>
10
11
#include <linux/platform_data/cros_ec_proto.h>
11
12
#include <linux/platform_data/cros_usbpd_notify.h>
@@ -218,12 +219,19 @@ static void cros_usbpd_notify_remove_plat(struct platform_device *pdev)
218
219
& pdnotify -> nb );
219
220
}
220
221
222
+ static const struct platform_device_id cros_usbpd_notify_id [] = {
223
+ { DRV_NAME , 0 },
224
+ {}
225
+ };
226
+ MODULE_DEVICE_TABLE (platform , cros_usbpd_notify_id );
227
+
221
228
static struct platform_driver cros_usbpd_notify_plat_driver = {
222
229
.driver = {
223
230
.name = DRV_NAME ,
224
231
},
225
232
.probe = cros_usbpd_notify_probe_plat ,
226
233
.remove_new = cros_usbpd_notify_remove_plat ,
234
+ .id_table = cros_usbpd_notify_id ,
227
235
};
228
236
229
237
static int __init cros_usbpd_notify_init (void )
@@ -258,4 +266,3 @@ module_exit(cros_usbpd_notify_exit);
258
266
MODULE_LICENSE ("GPL" );
259
267
MODULE_DESCRIPTION ("ChromeOS power delivery notifier device" );
260
268
MODULE_AUTHOR (
"Jon Flatley <[email protected] >" );
261
- MODULE_ALIAS ("platform:" DRV_NAME );
You can’t perform that action at this time.
0 commit comments