net: iosm: add missing MODULE_DEVICE_TABLE
authorZou Wei <zou_wei@huawei.com>
Wed, 16 Jun 2021 04:07:27 +0000 (12:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jun 2021 07:45:37 +0000 (00:45 -0700)
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: David S. Miller <davem@davemloft.net>
drivers/net/wwan/iosm/iosm_ipc_pcie.c

index ac6badd..7f7d364 100644 (file)
@@ -322,6 +322,7 @@ static const struct pci_device_id iosm_ipc_ids[] = {
        { PCI_DEVICE(PCI_VENDOR_ID_INTEL, INTEL_CP_DEVICE_7560_ID) },
        {}
 };
+MODULE_DEVICE_TABLE(pci, iosm_ipc_ids);
 
 /* Enter sleep in s2idle case
  */