OSDN Git Service

reset: brcmstb: Add missing MODULE_DEVICE_TABLE
authorZou Wei <zou_wei@huawei.com>
Wed, 12 May 2021 03:14:43 +0000 (11:14 +0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 12 May 2021 06:01:26 +0000 (08:01 +0200)
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>
Fixes: 77750bc089e4 ("reset: Add Broadcom STB SW_INIT reset controller driver")
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1620789283-15048-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/reset-brcmstb.c

index f213264..42c9d52 100644 (file)
@@ -111,6 +111,7 @@ static const struct of_device_id brcmstb_reset_of_match[] = {
        { .compatible = "brcm,brcmstb-reset" },
        { /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, brcmstb_reset_of_match);
 
 static struct platform_driver brcmstb_reset_driver = {
        .probe  = brcmstb_reset_probe,