mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 03:13:59 +00:00 
			
		
		
		
	 12b15e8328
			
		
	
	
		12b15e8328
		
	
	
	
	
		
			
			Move of_register_spi_devices() call from drivers to spi_register_master(). Also change the function to use the struct device_node pointer from master spi device instead of passing it as function argument. Signed-off-by: Anatolij Gustschin <agust@denx.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
		
			
				
	
	
		
			24 lines
		
	
	
		
			528 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			528 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * OpenFirmware SPI support routines
 | |
|  * Copyright (C) 2008 Secret Lab Technologies Ltd.
 | |
|  *
 | |
|  * Support routines for deriving SPI device attachments from the device
 | |
|  * tree.
 | |
|  */
 | |
| 
 | |
| #ifndef __LINUX_OF_SPI_H
 | |
| #define __LINUX_OF_SPI_H
 | |
| 
 | |
| #include <linux/spi/spi.h>
 | |
| 
 | |
| #if defined(CONFIG_OF_SPI) || defined(CONFIG_OF_SPI_MODULE)
 | |
| extern void of_register_spi_devices(struct spi_master *master);
 | |
| #else
 | |
| static inline void of_register_spi_devices(struct spi_master *master)
 | |
| {
 | |
| 	return;
 | |
| }
 | |
| #endif /* CONFIG_OF_SPI */
 | |
| 
 | |
| #endif /* __LINUX_OF_SPI */
 |