Fix module loading by adding missing MODULE_DEVICE_TABLE.
Fixes: 40ce9798794f ("nvmem: add QTI SDAM driver")
Signed-off-by: Srinivas Kandagatla <[email protected]>
---
drivers/nvmem/qcom-spmi-sdam.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/nvmem/qcom-spmi-sdam.c b/drivers/nvmem/qcom-spmi-sdam.c
index 4fcb63507ecd..8499892044b7 100644
--- a/drivers/nvmem/qcom-spmi-sdam.c
+++ b/drivers/nvmem/qcom-spmi-sdam.c
@@ -166,6 +166,7 @@ static const struct of_device_id sdam_match_table[] = {
{ .compatible = "qcom,spmi-sdam" },
{},
};
+MODULE_DEVICE_TABLE(of, sdam_match_table);
static struct platform_driver sdam_driver = {
.driver = {
--
2.21.0
On Fri, Jun 11, 2021 at 09:33:41AM +0100, Srinivas Kandagatla wrote:
> Fix module loading by adding missing MODULE_DEVICE_TABLE.
>
> Fixes: 40ce9798794f ("nvmem: add QTI SDAM driver")
> Signed-off-by: Srinivas Kandagatla <[email protected]>
> ---
> drivers/nvmem/qcom-spmi-sdam.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/nvmem/qcom-spmi-sdam.c b/drivers/nvmem/qcom-spmi-sdam.c
> index 4fcb63507ecd..8499892044b7 100644
> --- a/drivers/nvmem/qcom-spmi-sdam.c
> +++ b/drivers/nvmem/qcom-spmi-sdam.c
> @@ -166,6 +166,7 @@ static const struct of_device_id sdam_match_table[] = {
> { .compatible = "qcom,spmi-sdam" },
> {},
> };
> +MODULE_DEVICE_TABLE(of, sdam_match_table);
>
> static struct platform_driver sdam_driver = {
> .driver = {
> --
> 2.21.0
>
Same comment as patch 1/9