[ifxmips] some correction (sorry, was compiling old files)
[openwrt-10.03/.git] / target / linux / ifxmips / files / arch / mips / ifxmips / dma-core.c
index b334200cae18af0a39243af25c841860c9a38045..5271e6be44f00c8df3301aa31074e99d82540adc 100644 (file)
@@ -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;