Skip to contentSkip to conversation

dmaengine: qcom_hidma: autoload while probing ACPI

PATCH In review Sinan Kaya 2 participants 2 messages Nov 19, 2016 – Nov 23, 2016

Subsystems (3)
lore
Share & tools
lore

Sinan Kaya

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/dma/qcom/hidma.c      | 1 +
 drivers/dma/qcom/hidma_mgmt.c | 1 +
 2 files changed, 2 insertions(+)
drivers/dma/qcom/hidma.c +1 -0
index 248e74b..3c982c9 100644
@@ -895,6 +895,7 @@ static int hidma_remove(struct platform_device *pdev)
 	{"QCOM8062"},
 	{},
 };
+MODULE_DEVICE_TABLE(acpi, hidma_acpi_ids);
 #endif
 
 static const struct of_device_id hidma_match[] = {
drivers/dma/qcom/hidma_mgmt.c +1 -0
index 985f5ac..f847d32 100644
@@ -282,6 +282,7 @@ static int hidma_mgmt_probe(struct platform_device *pdev)
 	{"QCOM8060"},
 	{},
 };
+MODULE_DEVICE_TABLE(acpi, hidma_mgmt_acpi_ids);
 #endif
 
 static const struct of_device_id hidma_mgmt_match[] = {
Signature · 1 line
1.9.1
#1 lore raw
Quoted 4 lines · Sinan Kaya

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.

Applied now

Signature · 1 line
~Vinod