[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 15:02:40
Message-ID: S27012293AbbFJPCnJlugV/20150610150243Z+1345 () 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: 7c637bb66e45b95c2a8f56054755827fe67214fd
Gitweb: http://git.linux-mips.org/g/ralf/linux/7c637bb66e45
Branch: linux-2.6.26-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