]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: omap2+: gpmc-nand: Use dynamic platform_device_alloc()
authorRostislav Lisovy <lisovy@gmail.com>
Wed, 4 Jun 2014 14:24:35 +0000 (16:24 +0200)
committerRoger Quadros <rogerq@ti.com>
Fri, 11 Jul 2014 13:15:13 +0000 (16:15 +0300)
commit97a288ba2cfaf18ae2a8d19b8d9ea8cb3fbe301a
tree704fa1f65df8ddfcdf73e55113cf246eb84be3e0
parentcd3de83f147601356395b57a8673e9c5ff1e59d1
ARM: omap2+: gpmc-nand: Use dynamic platform_device_alloc()

GPMC controller supports up to 8 memory devices connected to it.
Since there is one statically allocated "struct platform_device
gpmc_nand_device" it is not possible to configure the system to
use more than one NAND device connected to the GPMC. This
modification makes it possible to use up to 8 NAND devices
connected to the GPMC controller.

Signed-off-by: Rostislav Lisovy <lisovy@merica.cz>
Signed-off-by: Roger Quadros <rogerq@ti.com>
arch/arm/mach-omap2/gpmc-nand.c