]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Cobalt: Do not build MTD platform device registration code as module.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 10 Jun 2015 08:23:29 +0000 (10:23 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 10 Jun 2015 08:39:30 +0000 (10:39 +0200)
commit74bd0695a101899cf4f7a0e46382001b77416e72
tree445315e66fba75fe25ab2d2f9611b31d1ec243fe
parent27947cee5ac1a5ad489565c1e0ccd2c34784ffaf
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>
arch/mips/cobalt/Makefile