rpmsg: qcom_glink_ssr: fix module autoloading
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 10 Apr 2024 16:40:58 +0000 (18:40 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 7 May 2024 02:26:28 +0000 (19:26 -0700)
Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240410164058.233280-1-krzk@kernel.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/rpmsg/qcom_glink_ssr.c

index 39ffa384c9b1d3eb0b487036288fe6c45a4ff572..e71d3716c55c5c1ca9916c8e0ad2ab84ca8e7b6b 100644 (file)
@@ -154,6 +154,7 @@ static const struct rpmsg_device_id qcom_glink_ssr_match[] = {
        { "glink_ssr" },
        {}
 };
+MODULE_DEVICE_TABLE(rpmsg, qcom_glink_ssr_match);
 
 static struct rpmsg_driver qcom_glink_ssr_driver = {
        .probe = qcom_glink_ssr_probe,