Commit 4e25651b authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu

Pull a m68knommu fix from Greg Ungerer:
 "It contains a single fix for including the ColdFire QSPI interface
  setup code when enabled as a module.  This was broken in the
  consolidation of the ColdFire SoC device tables in the 3.4 merge
  window."

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
  m68knommu: enable qspi support when SPI_COLDFIRE_QSPI = m
parents 1b76b02f 83ca6009
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
/***************************************************************************/ /***************************************************************************/
#ifdef CONFIG_SPI_COLDFIRE_QSPI #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
static void __init m520x_qspi_init(void) static void __init m520x_qspi_init(void)
{ {
...@@ -35,7 +35,7 @@ static void __init m520x_qspi_init(void) ...@@ -35,7 +35,7 @@ static void __init m520x_qspi_init(void)
writew(par, MCF_GPIO_PAR_UART); writew(par, MCF_GPIO_PAR_UART);
} }
#endif /* CONFIG_SPI_COLDFIRE_QSPI */ #endif /* IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) */
/***************************************************************************/ /***************************************************************************/
...@@ -79,7 +79,7 @@ void __init config_BSP(char *commandp, int size) ...@@ -79,7 +79,7 @@ void __init config_BSP(char *commandp, int size)
mach_sched_init = hw_timer_init; mach_sched_init = hw_timer_init;
m520x_uarts_init(); m520x_uarts_init();
m520x_fec_init(); m520x_fec_init();
#ifdef CONFIG_SPI_COLDFIRE_QSPI #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
m520x_qspi_init(); m520x_qspi_init();
#endif #endif
} }
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
/***************************************************************************/ /***************************************************************************/
#ifdef CONFIG_SPI_COLDFIRE_QSPI #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
static void __init m523x_qspi_init(void) static void __init m523x_qspi_init(void)
{ {
...@@ -36,7 +36,7 @@ static void __init m523x_qspi_init(void) ...@@ -36,7 +36,7 @@ static void __init m523x_qspi_init(void)
writew(par, MCFGPIO_PAR_TIMER); writew(par, MCFGPIO_PAR_TIMER);
} }
#endif /* CONFIG_SPI_COLDFIRE_QSPI */ #endif /* IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) */
/***************************************************************************/ /***************************************************************************/
...@@ -58,7 +58,7 @@ void __init config_BSP(char *commandp, int size) ...@@ -58,7 +58,7 @@ void __init config_BSP(char *commandp, int size)
{ {
mach_sched_init = hw_timer_init; mach_sched_init = hw_timer_init;
m523x_fec_init(); m523x_fec_init();
#ifdef CONFIG_SPI_COLDFIRE_QSPI #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
m523x_qspi_init(); m523x_qspi_init();
#endif #endif
} }
......
...@@ -51,7 +51,7 @@ static struct platform_device *m5249_devices[] __initdata = { ...@@ -51,7 +51,7 @@ static struct platform_device *m5249_devices[] __initdata = {
/***************************************************************************/ /***************************************************************************/
#ifdef CONFIG_SPI_COLDFIRE_QSPI #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
static void __init m5249_qspi_init(void) static void __init m5249_qspi_init(void)
{ {
...@@ -61,7 +61,7 @@ static void __init m5249_qspi_init(void) ...@@ -61,7 +61,7 @@ static void __init m5249_qspi_init(void)
mcf_mapirq2imr(MCF_IRQ_QSPI, MCFINTC_QSPI); mcf_mapirq2imr(MCF_IRQ_QSPI, MCFINTC_QSPI);
} }
#endif /* CONFIG_SPI_COLDFIRE_QSPI */ #endif /* IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) */
/***************************************************************************/ /***************************************************************************/
...@@ -90,7 +90,7 @@ void __init config_BSP(char *commandp, int size) ...@@ -90,7 +90,7 @@ void __init config_BSP(char *commandp, int size)
#ifdef CONFIG_M5249C3 #ifdef CONFIG_M5249C3
m5249_smc91x_init(); m5249_smc91x_init();
#endif #endif
#ifdef CONFIG_SPI_COLDFIRE_QSPI #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
m5249_qspi_init(); m5249_qspi_init();
#endif #endif
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
/***************************************************************************/ /***************************************************************************/
#ifdef CONFIG_SPI_COLDFIRE_QSPI #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
static void __init m527x_qspi_init(void) static void __init m527x_qspi_init(void)
{ {
...@@ -42,7 +42,7 @@ static void __init m527x_qspi_init(void) ...@@ -42,7 +42,7 @@ static void __init m527x_qspi_init(void)
#endif #endif
} }
#endif /* CONFIG_SPI_COLDFIRE_QSPI */ #endif /* IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) */
/***************************************************************************/ /***************************************************************************/
...@@ -90,7 +90,7 @@ void __init config_BSP(char *commandp, int size) ...@@ -90,7 +90,7 @@ void __init config_BSP(char *commandp, int size)
mach_sched_init = hw_timer_init; mach_sched_init = hw_timer_init;
m527x_uarts_init(); m527x_uarts_init();
m527x_fec_init(); m527x_fec_init();
#ifdef CONFIG_SPI_COLDFIRE_QSPI #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
m527x_qspi_init(); m527x_qspi_init();
#endif #endif
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
/***************************************************************************/ /***************************************************************************/
#ifdef CONFIG_SPI_COLDFIRE_QSPI #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
static void __init m528x_qspi_init(void) static void __init m528x_qspi_init(void)
{ {
...@@ -32,7 +32,7 @@ static void __init m528x_qspi_init(void) ...@@ -32,7 +32,7 @@ static void __init m528x_qspi_init(void)
__raw_writeb(0x07, MCFGPIO_PQSPAR); __raw_writeb(0x07, MCFGPIO_PQSPAR);
} }
#endif /* CONFIG_SPI_COLDFIRE_QSPI */ #endif /* IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) */
/***************************************************************************/ /***************************************************************************/
...@@ -98,7 +98,7 @@ void __init config_BSP(char *commandp, int size) ...@@ -98,7 +98,7 @@ void __init config_BSP(char *commandp, int size)
mach_sched_init = hw_timer_init; mach_sched_init = hw_timer_init;
m528x_uarts_init(); m528x_uarts_init();
m528x_fec_init(); m528x_fec_init();
#ifdef CONFIG_SPI_COLDFIRE_QSPI #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
m528x_qspi_init(); m528x_qspi_init();
#endif #endif
} }
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
/***************************************************************************/ /***************************************************************************/
#ifdef CONFIG_SPI_COLDFIRE_QSPI #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
static void __init m532x_qspi_init(void) static void __init m532x_qspi_init(void)
{ {
...@@ -38,7 +38,7 @@ static void __init m532x_qspi_init(void) ...@@ -38,7 +38,7 @@ static void __init m532x_qspi_init(void)
writew(0x01f0, MCF_GPIO_PAR_QSPI); writew(0x01f0, MCF_GPIO_PAR_QSPI);
} }
#endif /* CONFIG_SPI_COLDFIRE_QSPI */ #endif /* IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) */
/***************************************************************************/ /***************************************************************************/
...@@ -77,7 +77,7 @@ void __init config_BSP(char *commandp, int size) ...@@ -77,7 +77,7 @@ void __init config_BSP(char *commandp, int size)
mach_sched_init = hw_timer_init; mach_sched_init = hw_timer_init;
m532x_uarts_init(); m532x_uarts_init();
m532x_fec_init(); m532x_fec_init();
#ifdef CONFIG_SPI_COLDFIRE_QSPI #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
m532x_qspi_init(); m532x_qspi_init();
#endif #endif
......
...@@ -121,7 +121,7 @@ static struct platform_device mcf_fec1 = { ...@@ -121,7 +121,7 @@ static struct platform_device mcf_fec1 = {
#endif /* MCFFEC_BASE1 */ #endif /* MCFFEC_BASE1 */
#endif /* CONFIG_FEC */ #endif /* CONFIG_FEC */
#ifdef CONFIG_SPI_COLDFIRE_QSPI #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
/* /*
* The ColdFire QSPI module is an SPI protocol hardware block used * The ColdFire QSPI module is an SPI protocol hardware block used
* on a number of different ColdFire CPUs. * on a number of different ColdFire CPUs.
...@@ -274,7 +274,7 @@ static struct platform_device mcf_qspi = { ...@@ -274,7 +274,7 @@ static struct platform_device mcf_qspi = {
.resource = mcf_qspi_resources, .resource = mcf_qspi_resources,
.dev.platform_data = &mcf_qspi_data, .dev.platform_data = &mcf_qspi_data,
}; };
#endif /* CONFIG_SPI_COLDFIRE_QSPI */ #endif /* IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI) */
static struct platform_device *mcf_devices[] __initdata = { static struct platform_device *mcf_devices[] __initdata = {
&mcf_uart, &mcf_uart,
...@@ -284,7 +284,7 @@ static struct platform_device *mcf_devices[] __initdata = { ...@@ -284,7 +284,7 @@ static struct platform_device *mcf_devices[] __initdata = {
&mcf_fec1, &mcf_fec1,
#endif #endif
#endif #endif
#ifdef CONFIG_SPI_COLDFIRE_QSPI #if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
&mcf_qspi, &mcf_qspi,
#endif #endif
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment