From c1cb37da169ca63986e85ab1ef33c25fe4fb003d Mon Sep 17 00:00:00 2001 From: thl Date: Tue, 16 Dec 2008 21:27:09 +0000 Subject: [ifxmips] some correction (sorry, was compiling old files) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13670 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ifxmips/files/arch/mips/ifxmips/dma-core.c | 2 +- target/linux/ifxmips/files/arch/mips/ifxmips/reset.c | 2 +- target/linux/ifxmips/files/arch/mips/ifxmips/setup.c | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'target/linux/ifxmips/files/arch/mips') diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/dma-core.c b/target/linux/ifxmips/files/arch/mips/ifxmips/dma-core.c index b334200ca..5271e6be4 100644 --- a/target/linux/ifxmips/files/arch/mips/ifxmips/dma-core.c +++ b/target/linux/ifxmips/files/arch/mips/ifxmips/dma-core.c @@ -552,7 +552,7 @@ int map_dma_chan(struct dma_chan_map *map) int result; for (i = 0; i < MAX_DMA_DEVICE_NUM; i++) - dma_devs[i].device_name = &global_device_name[i]; + strcpy(dma_devs[i].device_name, global_device_name[i]); for (i = 0; i < MAX_DMA_CHANNEL_NUM; i++) { dma_chan[i].irq = map[i].irq; diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/reset.c b/target/linux/ifxmips/files/arch/mips/ifxmips/reset.c index 531294885..0446b9747 100644 --- a/target/linux/ifxmips/files/arch/mips/ifxmips/reset.c +++ b/target/linux/ifxmips/files/arch/mips/ifxmips/reset.c @@ -18,8 +18,8 @@ #include #include -#include #include +#include #include #include diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/setup.c b/target/linux/ifxmips/files/arch/mips/ifxmips/setup.c index f36bb0572..e571862a4 100644 --- a/target/linux/ifxmips/files/arch/mips/ifxmips/setup.c +++ b/target/linux/ifxmips/files/arch/mips/ifxmips/setup.c @@ -19,9 +19,10 @@ #include -#include + #include +#include #include #include #include -- cgit v1.2.3