diff options
author | Johan Hovold <johan+linaro@kernel.org> | 2023-01-27 10:40:15 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-02-15 17:22:19 +0100 |
commit | 170e1cc3c00fae434c40edd5535d2665c7afeb11 (patch) | |
tree | 60ad2c6251aaaf76785813646d6cf3257a2b1263 /drivers | |
parent | f11330b7ba51613d0a660ee1cde35abb9cef6abb (diff) | |
download | linux-stable-170e1cc3c00fae434c40edd5535d2665c7afeb11.tar.gz linux-stable-170e1cc3c00fae434c40edd5535d2665c7afeb11.tar.bz2 linux-stable-170e1cc3c00fae434c40edd5535d2665c7afeb11.zip |
nvmem: qcom-spmi-sdam: fix module autoloading
commit 1ca7fca349316231bbaa68d16f819a08d683c5a7 upstream.
Add the missing module device table so that the driver can be autoloaded
when built as a module.
Fixes: 40ce9798794f ("nvmem: add QTI SDAM driver")
Cc: stable@vger.kernel.org # 5.6
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230127104015.23839-11-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/nvmem/qcom-spmi-sdam.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvmem/qcom-spmi-sdam.c b/drivers/nvmem/qcom-spmi-sdam.c index f6e9f96933ca..1549bfcc4c2d 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 = { |