Bluetooth: btmtksdio: add MODULE_DEVICE_TABLE()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 7 Nov 2019 09:46:10 +0000 (10:46 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 7 Nov 2019 14:15:41 +0000 (15:15 +0100)
This adds the missing MODULE_DEVICE_TABLE() for SDIO IDs. While certain
platforms using this driver indeed have HW issues causing problems if
the module is loaded too early - this should be handled from user-space
by blacklisting it or delaying the loading.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmtksdio.c

index 8133382..519788c 100644 (file)
@@ -57,6 +57,7 @@ static const struct sdio_device_id btmtksdio_table[] = {
         .driver_data = (kernel_ulong_t)&mt7668_data },
        { }     /* Terminating entry */
 };
+MODULE_DEVICE_TABLE(sdio, btmtksdio_table);
 
 #define MTK_REG_CHLPCR         0x4     /* W1S */
 #define C_INT_EN_SET           BIT(0)