powerpc: move device_to_mask() to dma-mapping.h
[deliverable/linux.git] / arch / powerpc / kernel / dma_64.c
index 3ae0c35d21f95b3fd8fee14ee208d1230cf9c887..ae5708e3a3127fc9a180ae1d881d5bea5ede48bc 100644 (file)
  * Generic iommu implementation
  */
 
-static inline unsigned long device_to_mask(struct device *dev)
-{
-       if (dev->dma_mask && *dev->dma_mask)
-               return *dev->dma_mask;
-       /* Assume devices without mask can take 32 bit addresses */
-       return 0xfffffffful;
-}
-
-
 /* Allocates a contiguous real buffer and creates mappings over it.
  * Returns the virtual address of the buffer and sets dma_handle
  * to the dma address (mapping) of the first page.
This page took 0.027656 seconds and 5 git commands to generate.