[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240822130113.164644-3-liaochen4@huawei.com>
Date: Thu, 22 Aug 2024 13:01:11 +0000
From: Liao Chen <liaochen4@...wei.com>
To: <linux-usb@...r.kernel.org>
CC: <linux-kernel@...r.kernel.org>, <gregkh@...uxfoundation.org>,
<alcooperx@...il.com>, <bcm-kernel-feedback-list@...adcom.com>,
<heikki.krogerus@...ux.intel.com>, <stern@...land.harvard.edu>,
<justin.chen@...adcom.com>
Subject: [PATCH -next 2/4] usb: misc: brcmstb-usb-pinmap: fix module autoloading
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.
Signed-off-by: Liao Chen <liaochen4@...wei.com>
---
drivers/usb/misc/brcmstb-usb-pinmap.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/misc/brcmstb-usb-pinmap.c b/drivers/usb/misc/brcmstb-usb-pinmap.c
index 2b2019c19cde..1ce885e4184c 100644
--- a/drivers/usb/misc/brcmstb-usb-pinmap.c
+++ b/drivers/usb/misc/brcmstb-usb-pinmap.c
@@ -335,6 +335,7 @@ static const struct of_device_id brcmstb_usb_pinmap_of_match[] = {
{ .compatible = "brcm,usb-pinmap" },
{ },
};
+MODULE_DEVICE_TABLE(of, brcmstb_usb_pinmap_of_match);
static struct platform_driver brcmstb_usb_pinmap_driver = {
.driver = {
--
2.34.1
Powered by blists - more mailing lists