Skip to content

Commit 12dc54f

Browse files
nfrapradokees
authored andcommitted
pstore/ram: Register to module device table
Register the compatible for this module on the module device table so it can be automatically loaded when a matching DT node is present, allowing logging of panics and oopses without any intervention. Signed-off-by: Nícolas F. R. A. Prado <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
1 parent a43e0fc commit 12dc54f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/pstore/ram.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,7 @@ static const struct of_device_id dt_match[] = {
893893
{ .compatible = "ramoops" },
894894
{}
895895
};
896+
MODULE_DEVICE_TABLE(of, dt_match);
896897

897898
static struct platform_driver ramoops_driver = {
898899
.probe = ramoops_probe,

0 commit comments

Comments
 (0)