]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
cw1200: add missing MODULE_DEVICE_TABLE
authorZou Wei <zou_wei@huawei.com>
Wed, 12 May 2021 03:05:14 +0000 (11:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:22:38 +0000 (16:22 +0200)
[ Upstream commit dd778f89225cd258e8f0fed2b7256124982c8bb5 ]

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>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1620788714-14300-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/cw1200/cw1200_sdio.c

index d3acc85932a569024a51d4b9d68b6dbc79dcfec8..de92107549eef1386aab264f2e6eeb0ec084e9ea 100644 (file)
@@ -62,6 +62,7 @@ static const struct sdio_device_id cw1200_sdio_ids[] = {
        { SDIO_DEVICE(SDIO_VENDOR_ID_STE, SDIO_DEVICE_ID_STE_CW1200) },
        { /* end: all zeroes */                 },
 };
+MODULE_DEVICE_TABLE(sdio, cw1200_sdio_ids);
 
 /* hwbus_ops implemetation */