diff options
Diffstat (limited to 'drivers/acpi/acpi_platform.c')
-rw-r--r-- | drivers/acpi/acpi_platform.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c index 06a67d5f2846..296b7a14893a 100644 --- a/drivers/acpi/acpi_platform.c +++ b/drivers/acpi/acpi_platform.c | |||
@@ -103,7 +103,12 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev) | |||
103 | pdevinfo.res = resources; | 103 | pdevinfo.res = resources; |
104 | pdevinfo.num_res = count; | 104 | pdevinfo.num_res = count; |
105 | pdevinfo.fwnode = acpi_fwnode_handle(adev); | 105 | pdevinfo.fwnode = acpi_fwnode_handle(adev); |
106 | pdevinfo.dma_mask = acpi_check_dma(adev, NULL) ? DMA_BIT_MASK(32) : 0; | 106 | |
107 | if (acpi_dma_supported(adev)) | ||
108 | pdevinfo.dma_mask = DMA_BIT_MASK(32); | ||
109 | else | ||
110 | pdevinfo.dma_mask = 0; | ||
111 | |||
107 | pdev = platform_device_register_full(&pdevinfo); | 112 | pdev = platform_device_register_full(&pdevinfo); |
108 | if (IS_ERR(pdev)) | 113 | if (IS_ERR(pdev)) |
109 | dev_err(&adev->dev, "platform device creation failed: %ld\n", | 114 | dev_err(&adev->dev, "platform device creation failed: %ld\n", |