blob: f1c24d8e79421486199cea8c54de0a92f5e1307c [file] [log] [blame]
Glauber Costa459121c92008-04-08 13:20:43 -03001#include <linux/dma-mapping.h>
2
3int dma_set_mask(struct device *dev, u64 mask)
4{
5 if (!dev->dma_mask || !dma_supported(dev, mask))
6 return -EIO;
7
8 *dev->dma_mask = mask;
9
10 return 0;
11}
12EXPORT_SYMBOL(dma_set_mask);
13
14