]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dmaengine: qcom_hidma: autoload while probing ACPI
authorSinan Kaya <okaya@codeaurora.org>
Sat, 19 Nov 2016 19:28:37 +0000 (14:28 -0500)
committerVinod Koul <vinod.koul@intel.com>
Wed, 23 Nov 2016 04:17:32 +0000 (09:47 +0530)
MODULE_DEVICE_TABLE is used by the kernel to determine which device driver
should be loaded for which platform device. MODULE_DEVICE_TABLE has been
only defined for the device-tree based platforms in the current code.
Defining it also for ACPI based platforms.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/qcom/hidma.c
drivers/dma/qcom/hidma_mgmt.c

index 248e74bfd95a72e645a693a5d44405598683a5bb..3c982c96b4b7ccc4f65bec3ed048163be6c86bf8 100644 (file)
@@ -895,6 +895,7 @@ static const struct acpi_device_id hidma_acpi_ids[] = {
        {"QCOM8062"},
        {},
 };
+MODULE_DEVICE_TABLE(acpi, hidma_acpi_ids);
 #endif
 
 static const struct of_device_id hidma_match[] = {
index 985f5ac2695d1de783190bb982cafe3b590cb2c2..f847d32cc4b56b5264371a15c4e42dc35362a20d 100644 (file)
@@ -282,6 +282,7 @@ static const struct acpi_device_id hidma_mgmt_acpi_ids[] = {
        {"QCOM8060"},
        {},
 };
+MODULE_DEVICE_TABLE(acpi, hidma_mgmt_acpi_ids);
 #endif
 
 static const struct of_device_id hidma_mgmt_match[] = {