@@ -113,12 +113,19 @@ static const struct of_device_id of_tps65218_pwr_match[] = {
};
MODULE_DEVICE_TABLE(of, of_tps65218_pwr_match);
+static const struct platform_device_id tps65218_pwrbtn_id_table[] = {
+ { "tps65218-pwrbutton", },
+ { /* sentinel */ }
+};
+MODULE_DEVICE_TABLE(platform, tps65218_pwrbtn_id_table);
+
static struct platform_driver tps65218_pwron_driver = {
.probe = tps65218_pwron_probe,
.driver = {
.name = "tps65218_pwrbutton",
.of_match_table = of_tps65218_pwr_match,
},
+ .id_table = tps65218_pwrbtn_id_table,
};
module_platform_driver(tps65218_pwron_driver);