OSDN Git Service

microblaze: Remove device_to_mask
authorMichal Simek <michal.simek@xilinx.com>
Fri, 16 May 2014 11:08:44 +0000 (13:08 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 4 Jun 2014 04:59:58 +0000 (06:59 +0200)
Completely unused function - remove it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/include/asm/dma-mapping.h

index 48180ea..ab35372 100644 (file)
 #define __dma_alloc_coherent(dev, gfp, size, handle)   NULL
 #define __dma_free_coherent(size, addr)                ((void)0)
 
-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;
-}
-
 /*
  * Available generic sets of operations
  */