mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	[POWERPC] Add set_dma_ops() to match get_dma_ops()
Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
		
							parent
							
								
									bd45ac0c5d
								
							
						
					
					
						commit
						1f62a1626e
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -76,6 +76,11 @@ static inline struct dma_mapping_ops *get_dma_ops(struct device *dev) | |||
| 	return dev->archdata.dma_ops; | ||||
| } | ||||
| 
 | ||||
| static inline void set_dma_ops(struct device *dev, struct dma_mapping_ops *ops) | ||||
| { | ||||
| 	dev->archdata.dma_ops = ops; | ||||
| } | ||||
| 
 | ||||
| static inline int dma_supported(struct device *dev, u64 mask) | ||||
| { | ||||
| 	struct dma_mapping_ops *dma_ops = get_dma_ops(dev); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Michael Ellerman
						Michael Ellerman