]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: nand: omap: Do not use global variables
authorRostislav Lisovy <lisovy@gmail.com>
Thu, 2 Oct 2014 12:16:12 +0000 (14:16 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 22 Oct 2014 08:33:33 +0000 (01:33 -0700)
commit94cb4ee0f75383327fbeeb91909b342dae3771a5
treeb6bc80b2913e34f09ea900aa4254cb085b9274d9
parente66fcf722a74786c500957608f3230e843960b42
mtd: nand: omap: Do not use global variables

Since the commit 97a288ba2cfa ("ARM: omap2+: gpmc-nand: Use
dynamic platform_device_alloc()") gpmc-nand driver supports
multiple NAND flash devices connected to the single controller.
Remove global variable to make the code thread-safe.

Signed-off-by: Rostislav Lisovy <lisovy@merica.cz>
Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/omap2.c