diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-11-26 18:48:05 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-11-26 18:48:05 +0000 |
commit | 89f5236aa601de10cebcf13905aa0c699d532922 (patch) | |
tree | e1ae53c16e245eb55c33aed6724abe6ead915184 | |
parent | 9eabad6fb366b2ab5657aa617ba485a67018a93e (diff) | |
download | upstream-89f5236aa601de10cebcf13905aa0c699d532922.tar.gz upstream-89f5236aa601de10cebcf13905aa0c699d532922.tar.bz2 upstream-89f5236aa601de10cebcf13905aa0c699d532922.zip |
cns3xxx: add missing dma mask for ethernet device
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43399 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c index 8ab52098ac..99c4108b2f 100644 --- a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c +++ b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c @@ -341,12 +341,17 @@ static struct resource laguna_net_resource[] = { } }; +static u64 laguna_net_dmamask = DMA_BIT_MASK(32); static struct platform_device laguna_net_device = { .name = "cns3xxx_eth", .id = 0, .resource = laguna_net_resource, .num_resources = ARRAY_SIZE(laguna_net_resource), - .dev.platform_data = &laguna_net_data, + .dev = { + .dma_mask = &laguna_net_dmamask, + .coherent_dma_mask = DMA_BIT_MASK(32), + .platform_data = &laguna_net_data, + } }; /* |