mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 23:21:46 +00:00
of/spi: call of_register_spi_devices() from spi core code
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>
This commit is contained in:
parent
559e2b7ee7
commit
12b15e8328
10 changed files with 27 additions and 24 deletions
|
@ -9,10 +9,15 @@
|
|||
#ifndef __LINUX_OF_SPI_H
|
||||
#define __LINUX_OF_SPI_H
|
||||
|
||||
#include <linux/of.h>
|
||||
#include <linux/spi/spi.h>
|
||||
|
||||
extern void of_register_spi_devices(struct spi_master *master,
|
||||
struct device_node *np);
|
||||
#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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue