diff --git a/drivers/base/platform.c b/drivers/base/platform.c index b5ce7b0857953e32c90743c39b920a9f61a89f2a..46abbfb5265518f8f0a439e892af4321b277f8f3 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -512,6 +512,7 @@ int platform_device_add(struct platform_device *pdev) pdev->dev.parent = &platform_bus; pdev->dev.bus = &platform_bus_type; + pdev->dev.dma_parms = &pdev->dma_parms; switch (pdev->id) { default: diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index 041bfa412aa09521813c057fbfc3f273dfda062b..81900b3cbe3703fbfd148c0280e70d05e8b3879f 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h @@ -25,6 +25,7 @@ struct platform_device { bool id_auto; struct device dev; u64 platform_dma_mask; + struct device_dma_parameters dma_parms; u32 num_resources; struct resource *resource;