* [PATCH -next] nvmem: sprd: Add missing MODULE_DEVICE_TABLE
@ 2021-04-10 3:50 Bixuan Cui
2021-04-12 11:17 ` Srinivas Kandagatla
0 siblings, 1 reply; 2+ messages in thread
From: Bixuan Cui @ 2021-04-10 3:50 UTC (permalink / raw)
To: cuibixuan, Srinivas Kandagatla, Orson Zhai, Baolin Wang, Chunyan Zhang
Cc: linux-kernel, kernel-janitors
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@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
---
drivers/nvmem/sprd-efuse.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/nvmem/sprd-efuse.c b/drivers/nvmem/sprd-efuse.c
index 59523245db8a..5d394559edf2 100644
--- a/drivers/nvmem/sprd-efuse.c
+++ b/drivers/nvmem/sprd-efuse.c
@@ -425,6 +425,7 @@ static const struct of_device_id sprd_efuse_of_match[] = {
{ .compatible = "sprd,ums312-efuse", .data = &ums312_data },
{ }
};
+MODULE_DEVICE_TABLE(of, sprd_efuse_of_match);
static struct platform_driver sprd_efuse_driver = {
.probe = sprd_efuse_probe,
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] nvmem: sprd: Add missing MODULE_DEVICE_TABLE
2021-04-10 3:50 [PATCH -next] nvmem: sprd: Add missing MODULE_DEVICE_TABLE Bixuan Cui
@ 2021-04-12 11:17 ` Srinivas Kandagatla
0 siblings, 0 replies; 2+ messages in thread
From: Srinivas Kandagatla @ 2021-04-12 11:17 UTC (permalink / raw)
To: Bixuan Cui, Orson Zhai, Baolin Wang, Chunyan Zhang
Cc: linux-kernel, kernel-janitors
On 10/04/2021 04:50, Bixuan Cui wrote:
> 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@huawei.com>
> Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
> ---
Applied thanks,
--srini
> drivers/nvmem/sprd-efuse.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/nvmem/sprd-efuse.c b/drivers/nvmem/sprd-efuse.c
> index 59523245db8a..5d394559edf2 100644
> --- a/drivers/nvmem/sprd-efuse.c
> +++ b/drivers/nvmem/sprd-efuse.c
> @@ -425,6 +425,7 @@ static const struct of_device_id sprd_efuse_of_match[] = {
> { .compatible = "sprd,ums312-efuse", .data = &ums312_data },
> { }
> };
> +MODULE_DEVICE_TABLE(of, sprd_efuse_of_match);
>
> static struct platform_driver sprd_efuse_driver = {
> .probe = sprd_efuse_probe,
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-12 11:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-10 3:50 [PATCH -next] nvmem: sprd: Add missing MODULE_DEVICE_TABLE Bixuan Cui
2021-04-12 11:17 ` Srinivas Kandagatla
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).