提交 1e6eebb4 编写于 作者: L Lee Jones 提交者: Linus Walleij

usb: musb: ux500: take the dma_mask from coherent_dma_mask

The dma_mask will always be the same as the coherent_dma_mask, so let's
cut down on the platform_data burden and set it as such in the driver.
This also saves us from supporting it separately when we come to enable
this driver for Device Tree.

Cc: linux-usb@vger.kernel.org
Acked-by: NFelipe Balbi <balbi@ti.com>
Acked-by: NFabio Baltieri <fabio.baltieri@linaro.org>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 a20b1b79
...@@ -74,8 +74,6 @@ static struct ux500_musb_board_data musb_board_data = { ...@@ -74,8 +74,6 @@ static struct ux500_musb_board_data musb_board_data = {
.dma_filter = stedma40_filter, .dma_filter = stedma40_filter,
}; };
static u64 ux500_musb_dmamask = DMA_BIT_MASK(32);
static struct musb_hdrc_platform_data musb_platform_data = { static struct musb_hdrc_platform_data musb_platform_data = {
.mode = MUSB_OTG, .mode = MUSB_OTG,
.board_data = &musb_board_data, .board_data = &musb_board_data,
...@@ -98,7 +96,6 @@ struct platform_device ux500_musb_device = { ...@@ -98,7 +96,6 @@ struct platform_device ux500_musb_device = {
.id = 0, .id = 0,
.dev = { .dev = {
.platform_data = &musb_platform_data, .platform_data = &musb_platform_data,
.dma_mask = &ux500_musb_dmamask,
.coherent_dma_mask = DMA_BIT_MASK(32), .coherent_dma_mask = DMA_BIT_MASK(32),
}, },
.num_resources = ARRAY_SIZE(usb_resources), .num_resources = ARRAY_SIZE(usb_resources),
......
...@@ -228,7 +228,7 @@ static int ux500_probe(struct platform_device *pdev) ...@@ -228,7 +228,7 @@ static int ux500_probe(struct platform_device *pdev)
} }
musb->dev.parent = &pdev->dev; musb->dev.parent = &pdev->dev;
musb->dev.dma_mask = pdev->dev.dma_mask; musb->dev.dma_mask = &pdev->dev.coherent_dma_mask;
musb->dev.coherent_dma_mask = pdev->dev.coherent_dma_mask; musb->dev.coherent_dma_mask = pdev->dev.coherent_dma_mask;
glue->dev = &pdev->dev; glue->dev = &pdev->dev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册