Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of: move of_translate_dma_address to of_address.h

of_translate_dma_address is implemented in common code, so move the
declaration there too.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: linuxppc-dev@lists.ozlabs.org

+4 -4
-4
arch/powerpc/include/asm/prom.h
··· 24 24 * OF address retreival & translation 25 25 */ 26 26 27 - /* Translate a DMA address from device space to CPU space */ 28 - extern u64 of_translate_dma_address(struct device_node *dev, 29 - const __be32 *in_addr); 30 - 31 27 /* Parse the ibm,dma-window property of an OF node into the busno, phys and 32 28 * size parameters. 33 29 */
+4
include/linux/of_address.h
··· 34 34 res->name = np->full_name; 35 35 } 36 36 37 + /* Translate a DMA address from device space to CPU space */ 38 + extern u64 of_translate_dma_address(struct device_node *dev, 39 + const __be32 *in_addr); 40 + 37 41 #ifdef CONFIG_OF_ADDRESS 38 42 extern u64 of_translate_address(struct device_node *np, const __be32 *addr); 39 43 extern bool of_can_translate_address(struct device_node *dev);