[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220928030131.1392001-1-linyuyao1@huawei.com>
Date: Wed, 28 Sep 2022 11:01:31 +0800
From: Yuyao Lin <linyuyao1@...wei.com>
To: <keescook@...omium.org>, <anton@...msg.org>, <ccross@...roid.com>,
<tony.luck@...el.com>
CC: <linux-kernel@...r.kernel.org>, <weiyongjun1@...wei.com>,
<yuehaibing@...wei.com>, <liwei391@...wei.com>
Subject: [PATCH -next] pstore: Add missing MODULE_DEVICE_TABLE
From: Linyuyao <linyuyao1@...wei.com>
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.
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Linyuyao <linyuyao1@...wei.com>
---
fs/pstore/ram.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index fefe3d391d3a..b0534ab990d5 100644
--- a/fs/pstore/ram.c
+++ b/fs/pstore/ram.c
@@ -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,
--
2.25.1
Powered by blists - more mailing lists