From: Ralf Baechle Date: Wed, 10 Jun 2015 08:23:29 +0000 (+0200) Subject: MIPS: Cobalt: Do not build MTD platform device registration code as module. X-Git-Tag: omap-for-v4.2/fixes-rc1^2~200^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34b1252bd91851f77f89fbb6829a04efad900f41;p=pandora-kernel.git 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 --- Reading git-diff-tree failed