diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2023-01-18 18:08:49 +0300 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2023-01-20 18:59:53 +0300 |
commit | 8d8fcc391f50e2d9686d42b85e9b1db89b1bbb35 (patch) | |
tree | d65428f85b8ce4110dae28636e435083d3a0c37d /drivers/edac/qcom_edac.c | |
parent | 3bd2706c910fd328e4ab96ae0aabdcd7c4a90fbf (diff) | |
download | linux-8d8fcc391f50e2d9686d42b85e9b1db89b1bbb35.tar.xz |
EDAC/qcom: Add platform_device_id table for module autoloading
Add a device ID table so that the driver loads automatically when the
associated platform_device gets registered.
Reported-by: Andrew Halaney <ahalaney@redhat.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Steev Klimaszewski <steev@kali.org> # Thinkpad X13s
Tested-by: Andrew Halaney <ahalaney@redhat.com> # sa8540p-ride
Link: https://lore.kernel.org/r/20230118150904.26913-3-manivannan.sadhasivam@linaro.org
Diffstat (limited to 'drivers/edac/qcom_edac.c')
-rw-r--r-- | drivers/edac/qcom_edac.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/edac/qcom_edac.c b/drivers/edac/qcom_edac.c index 97a27e42dd61..9e77fa84e84f 100644 --- a/drivers/edac/qcom_edac.c +++ b/drivers/edac/qcom_edac.c @@ -397,12 +397,19 @@ static int qcom_llcc_edac_remove(struct platform_device *pdev) return 0; } +static const struct platform_device_id qcom_llcc_edac_id_table[] = { + { .name = "qcom_llcc_edac" }, + {} +}; +MODULE_DEVICE_TABLE(platform, qcom_llcc_edac_id_table); + static struct platform_driver qcom_llcc_edac_driver = { .probe = qcom_llcc_edac_probe, .remove = qcom_llcc_edac_remove, .driver = { .name = "qcom_llcc_edac", }, + .id_table = qcom_llcc_edac_id_table, }; module_platform_driver(qcom_llcc_edac_driver); |