[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-mips-cvs
Subject:    MIPS: Cobalt: Do not build MTD platform device registration code as module.
From:       linux-mips () linux-mips ! org
Date:       2015-06-10 14:40:37
Message-ID: S27012249AbbFJOkk210zV/20150610144040Z+1326 () eddie ! linux-mips ! org
[Download RAW message or body]

Author: Ralf Baechle <ralf@linux-mips.org> Wed Jun 10 10:23:29 2015 +0200
Commit: e2b3a510bf241341783ac1f6c69cd0e180607391
Gitweb: http://git.linux-mips.org/g/ralf/linux/e2b3a510bf24
Branch: linux-2.6.33-stable

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)

---

 arch/mips/cobalt/Makefile |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic