summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/fsl_upm.c
diff options
context:
space:
mode:
authorAlexander Sverdlin2013-10-14 18:52:23 +0200
committerBrian Norris2014-03-11 06:42:21 +0100
commit6f6b9feece0066695d87ed6df5bc0d8080c0c96c (patch)
tree2bf457627d4eb0fa9a9652bd62fa6edd85f3592a /drivers/mtd/nand/fsl_upm.c
parentmtd: sm_ftl: heap corruption in sm_create_sysfs_attributes() (diff)
downloadkernel-qcow2-linux-6f6b9feece0066695d87ed6df5bc0d8080c0c96c.tar.gz
kernel-qcow2-linux-6f6b9feece0066695d87ed6df5bc0d8080c0c96c.tar.xz
kernel-qcow2-linux-6f6b9feece0066695d87ed6df5bc0d8080c0c96c.zip
mtd: phram: Repair multiple instances support
Commit b2a2a84d35e0f42ad26e326ec4258f6a8b8eecbe (mtd: phram: dot not crash when built-in and passing boot param) claims to be "based on Ville Herva's similar patch to block2mtd" (c4e7fb313771ac03dfdca26d30e8b721731c562b), but it has missed the crucial point of the original path: all these "if(n)def MODULE". It has broken the possibility to create several phram instances when phram is compiled as module. The possibility to add instances via /sys writes to /sys/module/phram/parameters/phram was also broken with mentioned patch. Proposed patch takes the idea of original block2mtd patch to its full extent. Assumption "This function is always called before 'init_phram()'" was also incorrect, so removed the comment. This patch effectively reverts also b11ec57fc6e6d4882ef01a0c09a1dde58f50492e (mtd: phram: fix section mismatch for phram_setup). Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nsn.com> [Brian: remove static assigment = 0] Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/fsl_upm.c')
0 files changed, 0 insertions, 0 deletions