move wm8400-regulator's probe function to .devinit.text
[linux-2.6/sactl.git] / arch / mips / cavium-octeon / dma-octeon.c
blob01b1ef94b3615dc9d1452ee0439fdd8e6d58c7f7
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
6 * Copyright (C) 2000 Ani Joshi <ajoshi@unixbox.com>
7 * Copyright (C) 2000, 2001 Ralf Baechle <ralf@gnu.org>
8 * Copyright (C) 2005 Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>
9 * swiped from i386, and cloned for MIPS by Geert, polished by Ralf.
10 * IP32 changes by Ilya.
11 * Cavium Networks: Create new dma setup for Cavium Networks Octeon based on
12 * the kernels original.
14 #include <linux/types.h>
15 #include <linux/mm.h>
17 #include <dma-coherence.h>
19 dma_addr_t octeon_map_dma_mem(struct device *dev, void *ptr, size_t size)
21 /* Without PCI/PCIe this function can be called for Octeon internal
22 devices such as USB. These devices all support 64bit addressing */
23 mb();
24 return virt_to_phys(ptr);
27 void octeon_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr)
29 /* Without PCI/PCIe this function can be called for Octeon internal
30 * devices such as USB. These devices all support 64bit addressing */
31 return;