aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2015-06-01 18:00:44 -0400
committerTony Lindgren <tony@atomide.com>2015-06-01 18:00:44 -0400
commit28a7eedd1109c9277390f44aa11de76b673996cd (patch)
treea9d5ac738d37e4d06dea6efbd72715f9d870350f
parentb787f68c36d49bb1d9236f403813641efa74a031 (diff)
memory: omap-gpmc: Fix parsing of devices
We currently artificially limit the parsing of GPMC connected devices based on the device name. Let's stop doing that, it's confusing as adding devices to .dts files with using normal names like fpga and usb will currently cause them to not probe. Cc: Roger Quadros <rogerq@ti.com> Reported-by: Brian Hutchinson <b.hutchman@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--drivers/memory/omap-gpmc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c
index c94ea0d68746..0e524a1de56d 100644
--- a/drivers/memory/omap-gpmc.c
+++ b/drivers/memory/omap-gpmc.c
@@ -2074,14 +2074,8 @@ static int gpmc_probe_dt(struct platform_device *pdev)
2074 ret = gpmc_probe_nand_child(pdev, child); 2074 ret = gpmc_probe_nand_child(pdev, child);
2075 else if (of_node_cmp(child->name, "onenand") == 0) 2075 else if (of_node_cmp(child->name, "onenand") == 0)
2076 ret = gpmc_probe_onenand_child(pdev, child); 2076 ret = gpmc_probe_onenand_child(pdev, child);
2077 else if (of_node_cmp(child->name, "ethernet") == 0 || 2077 else
2078 of_node_cmp(child->name, "nor") == 0 ||
2079 of_node_cmp(child->name, "uart") == 0)
2080 ret = gpmc_probe_generic_child(pdev, child); 2078 ret = gpmc_probe_generic_child(pdev, child);
2081
2082 if (WARN(ret < 0, "%s: probing gpmc child %s failed\n",
2083 __func__, child->full_name))
2084 of_node_put(child);
2085 } 2079 }
2086 2080
2087 return 0; 2081 return 0;