diff options
author | NĂcolas F. R. A. Prado <nfraprado@collabora.com> | 2024-01-11 00:05:02 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2024-02-22 21:37:21 +0300 |
commit | 12dc54f568d4f589fd49d7c143cca0cc5fa221fd (patch) | |
tree | 3fdb78d2f74e7b64fdfabac4e7cf77ddd43aecb8 /fs/pstore | |
parent | a43e0fc5e9134a46515de2f2f8d4100b74e50de3 (diff) | |
download | linux-12dc54f568d4f589fd49d7c143cca0cc5fa221fd.tar.xz |
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>
Diffstat (limited to 'fs/pstore')
-rw-r--r-- | fs/pstore/ram.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index 88b34fdbf759..b1a455f42e93 100644 --- a/fs/pstore/ram.c +++ b/fs/pstore/ram.c @@ -893,6 +893,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, |