]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commit
ARM: omap2+: gpmc-nand: Use dynamic platform_device_alloc()
authorRostislav Lisovy <lisovy@gmail.com>
Wed, 9 Jul 2014 12:21:19 +0000 (14:21 +0200)
committerSekhar Nori <nsekhar@ti.com>
Mon, 21 Jul 2014 12:49:59 +0000 (18:19 +0530)
commite50b5e5b5bc32842d5975a7ff66b8bb2fb0895df
treed9dcb8ce4707d488cc653710a204079361fe67fd
parentbb16cc1da3af7fc9c86e188d1533d90ce5d13bc9
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>
[nsekhar@ti.com: fixed a 80-char line checkpatch warning]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-omap2/gpmc-nand.c