aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSinan Kaya <okaya@codeaurora.org>2016-11-19 14:28:37 -0500
committerVinod Koul <vinod.koul@intel.com>2016-11-22 23:17:32 -0500
commit75ff76687cfd9f62ea4a6d3a86679d5be1439a94 (patch)
tree73a6cab9a8eb7bc6d8455abc48d4a122e26800ec
parentc6e4584dab244752ffc1d7f95cdcf5290e7f1369 (diff)
dmaengine: qcom_hidma: autoload while probing ACPI
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>
-rw-r--r--drivers/dma/qcom/hidma.c1
-rw-r--r--drivers/dma/qcom/hidma_mgmt.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c
index 248e74bfd95a..3c982c96b4b7 100644
--- a/drivers/dma/qcom/hidma.c
+++ b/drivers/dma/qcom/hidma.c
@@ -895,6 +895,7 @@ static const struct acpi_device_id hidma_acpi_ids[] = {
895 {"QCOM8062"}, 895 {"QCOM8062"},
896 {}, 896 {},
897}; 897};
898MODULE_DEVICE_TABLE(acpi, hidma_acpi_ids);
898#endif 899#endif
899 900
900static const struct of_device_id hidma_match[] = { 901static const struct of_device_id hidma_match[] = {
diff --git a/drivers/dma/qcom/hidma_mgmt.c b/drivers/dma/qcom/hidma_mgmt.c
index 985f5ac2695d..f847d32cc4b5 100644
--- a/drivers/dma/qcom/hidma_mgmt.c
+++ b/drivers/dma/qcom/hidma_mgmt.c
@@ -282,6 +282,7 @@ static const struct acpi_device_id hidma_mgmt_acpi_ids[] = {
282 {"QCOM8060"}, 282 {"QCOM8060"},
283 {}, 283 {},
284}; 284};
285MODULE_DEVICE_TABLE(acpi, hidma_mgmt_acpi_ids);
285#endif 286#endif
286 287
287static const struct of_device_id hidma_mgmt_match[] = { 288static const struct of_device_id hidma_mgmt_match[] = {