diff options
author | Roger Quadros <rogerq@ti.com> | 2014-05-21 07:29:03 +0300 |
---|---|---|
committer | Roger Quadros <rogerq@ti.com> | 2016-04-15 11:53:36 +0300 |
commit | c9711ec5250b22fd94e9b34c17c095e001a90e66 (patch) | |
tree | a923d4d2a25293a60443e6a8d6b7f453daec1bb1 /arch/arm/mach-omap2/gpmc-nand.c | |
parent | 01b95fc6b299b99075b8980371fc19b980236c32 (diff) | |
download | linux-rt-c9711ec5250b22fd94e9b34c17c095e001a90e66.tar.gz |
mtd: nand: omap: Clean up device tree support
Move NAND specific device tree parsing to NAND driver.
The NAND controller node must have a compatible id, register space
resource and interrupt resource.
Signed-off-by: Roger Quadros <rogerq@ti.com>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/gpmc-nand.c')
-rw-r--r-- | arch/arm/mach-omap2/gpmc-nand.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/gpmc-nand.c b/arch/arm/mach-omap2/gpmc-nand.c index 04e6998c1529..f6ac027f3c3b 100644 --- a/arch/arm/mach-omap2/gpmc-nand.c +++ b/arch/arm/mach-omap2/gpmc-nand.c @@ -97,10 +97,7 @@ int gpmc_nand_init(struct omap_nand_platform_data *gpmc_nand_data, gpmc_nand_res[2].start = gpmc_get_client_irq(GPMC_IRQ_COUNT_EVENT); memset(&s, 0, sizeof(struct gpmc_settings)); - if (gpmc_nand_data->of_node) - gpmc_read_settings_dt(gpmc_nand_data->of_node, &s); - else - gpmc_set_legacy(gpmc_nand_data, &s); + gpmc_set_legacy(gpmc_nand_data, &s); s.device_nand = true; |