Skip to contentSkip to conversation

pstore: Add missing MODULE_DEVICE_TABLE

PATCH New Yuyao Lin 1 participant 1 message Sep 28, 2022 Pstore filesystem

lore
Share & tools
lore

Yuyao Lin

author
#0 lore raw

PATCH 1/1 pstore: Add missing MODULE_DEVICE_TABLE

From: Linyuyao <[email protected]>

This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module.

---
 fs/pstore/ram.c | 1 +
 1 file changed, 1 insertion(+)
fs/pstore/ram.c +1 -0
index fefe3d391d3a..b0534ab990d5 100644
@@ -887,6 +887,7 @@ static const struct of_device_id dt_match[] = {
 	{ .compatible = "ramoops" },
 	{}
 };
+MODULE_DEVICE_TABLE(of, dt_match);
 
 static struct platform_driver ramoops_driver = {
 	.probe		= ramoops_probe,
Signature · 1 line
2.25.1