mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
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 <nfraprado@collabora.com> Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20240110210600.787703-2-nfraprado@collabora.com Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
parent
a43e0fc5e9
commit
12dc54f568
@ -893,6 +893,7 @@ static const struct of_device_id dt_match[] = {
|
|||||||
{ .compatible = "ramoops" },
|
{ .compatible = "ramoops" },
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, dt_match);
|
||||||
|
|
||||||
static struct platform_driver ramoops_driver = {
|
static struct platform_driver ramoops_driver = {
|
||||||
.probe = ramoops_probe,
|
.probe = ramoops_probe,
|
||||||
|
Loading…
Reference in New Issue
Block a user