Skip to content

Commit 7ebe7af

Browse files
committed
Merge tag 'm68knommu-for-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
Pull m68knommu updates from Greg Ungerer: - only include FEC platform entries when hardware supports it - fix typo in ifdef config name * tag 'm68knommu-for-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: m68k: coldfire/device.c: only build FEC when HW macros are defined m68k: mcfgpio: Fix incorrect register offset for CONFIG_M5441x
2 parents 798bb34 + 63a24cf commit 7ebe7af

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

arch/m68k/coldfire/device.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static struct platform_device mcf_uart = {
9393
.dev.platform_data = mcf_uart_platform_data,
9494
};
9595

96-
#if IS_ENABLED(CONFIG_FEC)
96+
#ifdef MCFFEC_BASE0
9797

9898
#ifdef CONFIG_M5441x
9999
#define FEC_NAME "enet-fec"
@@ -145,6 +145,7 @@ static struct platform_device mcf_fec0 = {
145145
.platform_data = FEC_PDATA,
146146
}
147147
};
148+
#endif /* MCFFEC_BASE0 */
148149

149150
#ifdef MCFFEC_BASE1
150151
static struct resource mcf_fec1_resources[] = {
@@ -182,7 +183,6 @@ static struct platform_device mcf_fec1 = {
182183
}
183184
};
184185
#endif /* MCFFEC_BASE1 */
185-
#endif /* CONFIG_FEC */
186186

187187
#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
188188
/*
@@ -624,12 +624,12 @@ static struct platform_device mcf_flexcan0 = {
624624

625625
static struct platform_device *mcf_devices[] __initdata = {
626626
&mcf_uart,
627-
#if IS_ENABLED(CONFIG_FEC)
627+
#ifdef MCFFEC_BASE0
628628
&mcf_fec0,
629+
#endif
629630
#ifdef MCFFEC_BASE1
630631
&mcf_fec1,
631632
#endif
632-
#endif
633633
#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
634634
&mcf_qspi,
635635
#endif

arch/m68k/include/asm/mcfgpio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static inline void gpio_free(unsigned gpio)
136136
* read-modify-write as well as those controlled by the EPORT and GPIO modules.
137137
*/
138138
#define MCFGPIO_SCR_START 40
139-
#elif defined(CONFIGM5441x)
139+
#elif defined(CONFIG_M5441x)
140140
/* The m5441x EPORT doesn't have its own GPIO port, uses PORT C */
141141
#define MCFGPIO_SCR_START 0
142142
#else

0 commit comments

Comments
 (0)