aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2015-06-10 10:23:29 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-06-10 10:33:36 +0200
commitbda7007e674dbc36e8d99c160b71f5b0ca729236 (patch)
tree550e658a3fd9ebc85eb0b715dd07b2808140aae0
parentdf764f6b29a92ee4a35f6be895fda58da10c154f (diff)
downloadlinux-bda7007e674dbc36e8d99c160b71f5b0ca729236.tar.gz
MIPS: Cobalt: Do not build MTD platform device registration code as module.
If CONFIG_MTD_PHYSMAP is set to m, the Cobalt mtd.ko module might get unloaded while the drivers/mtd modules are still loaded resulting in stale references to the destroyed platform_device instance. Anyway, platform devices should always be registered indicated what devices are present, _not_ what drivers have been configured. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> (cherry picked from commit d77f9a96bae6bebb8c1a303cea4235a4fcbe7518)
-rw-r--r--arch/mips/cobalt/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/cobalt/Makefile b/arch/mips/cobalt/Makefile
index 558e9497794203..68f0c5871adcdf 100644
--- a/arch/mips/cobalt/Makefile
+++ b/arch/mips/cobalt/Makefile
@@ -2,7 +2,6 @@
# Makefile for the Cobalt micro systems family specific parts of the kernel
#
-obj-y := buttons.o irq.o lcd.o led.o reset.o rtc.o serial.o setup.o time.o
+obj-y := buttons.o irq.o lcd.o led.o mtd.o reset.o rtc.o serial.o setup.o time.o
obj-$(CONFIG_PCI) += pci.o
-obj-$(CONFIG_MTD_PHYSMAP) += mtd.o