Skip to content

Commit

Permalink
dmaengine: qcom_hidma: autoload while probing ACPI
Browse files Browse the repository at this point in the history
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>
Sinan Kaya authored and Vinod Koul committed Nov 23, 2016
1 parent c6e4584 commit 75ff766
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/dma/qcom/hidma.c
Original file line number Diff line number Diff line change
@@ -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[] = {
1 change: 1 addition & 0 deletions drivers/dma/qcom/hidma_mgmt.c
Original file line number Diff line number Diff line change
@@ -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[] = {

0 comments on commit 75ff766

Please sign in to comment.