diff options
| -rw-r--r-- | drivers/base/platform.c | 1 | ||||
| -rw-r--r-- | include/linux/platform_device.h | 1 | 
2 files changed, 2 insertions, 0 deletions
| diff --git a/drivers/base/platform.c b/drivers/base/platform.c index b5ce7b085795..46abbfb52655 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 041bfa412aa0..81900b3cbe37 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; | 
