The boards are currently using otg_ulpi_create and mxc_ulpi_access_ops, both are only present if CONFIG_USB_ULPI is set. To remove the need of ifdefs in the board code introduce a imx_otg_ulpi_create functions which expands to a static inline function if compiled without ulpi. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			325 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			325 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
#ifndef __MACH_ULPI_H
 | 
						|
#define __MACH_ULPI_H
 | 
						|
 | 
						|
#ifdef CONFIG_USB_ULPI
 | 
						|
struct otg_transceiver *imx_otg_ulpi_create(unsigned int flags);
 | 
						|
#else
 | 
						|
static inline struct otg_transceiver *imx_otg_ulpi_create(unsigned int flags)
 | 
						|
{
 | 
						|
	return NULL;
 | 
						|
}
 | 
						|
#endif
 | 
						|
 | 
						|
extern struct otg_io_access_ops mxc_ulpi_access_ops;
 | 
						|
 | 
						|
#endif /* __MACH_ULPI_H */
 | 
						|
 |