322c512f47
The mere fact that the kernel has the MMC subsystem enabled (CONFIG_MMC
enabled) does not mean that the underlying hardware platform has the
SDHC hardware present. Within the ColdFire hardware defines that is
signified by MCFSDHC_BASE being defined with an address.
The platform data for the ColdFire parts is including the SDHC hardware
if CONFIG_MMC is enabled, instead of MCFSDHC_BASE. This means that if
you are compiling for a ColdFire target that does not support SDHC but
enable CONFIG_MMC you will fail to compile with errors like this:
arch/m68k/coldfire/device.c:565:12: error: ‘MCFSDHC_BASE’ undeclared here (not in a function)
.start = MCFSDHC_BASE,
^
arch/m68k/coldfire/device.c:566:25: error: ‘MCFSDHC_SIZE’ undeclared here (not in a function)
.end = MCFSDHC_BASE + MCFSDHC_SIZE - 1,
^
arch/m68k/coldfire/device.c:569:12: error: ‘MCF_IRQ_SDHC’ undeclared here (not in a function)
.start = MCF_IRQ_SDHC,
^
Make the SDHC platform support depend on MCFSDHC_BASE, that is only
include it if the specific ColdFire SoC has that hardware module.
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
amcore.c | ||
cache.c | ||
clk.c | ||
device.c | ||
dma.c | ||
dma_timer.c | ||
entry.S | ||
firebee.c | ||
gpio.c | ||
head.S | ||
intc-2.c | ||
intc-525x.c | ||
intc-5249.c | ||
intc-5272.c | ||
intc-simr.c | ||
intc.c | ||
m53xx.c | ||
m54xx.c | ||
m520x.c | ||
m523x.c | ||
m525x.c | ||
m527x.c | ||
m528x.c | ||
m5206.c | ||
m5249.c | ||
m5272.c | ||
m5307.c | ||
m5407.c | ||
m5441x.c | ||
mcf8390.c | ||
nettel.c | ||
pci.c | ||
pit.c | ||
reset.c | ||
sltimers.c | ||
stmark2.c | ||
timers.c | ||
vectors.c |