Skip to content

Commit edcccc6

Browse files
rogerqarndb
authored andcommitted
memory: omap-gpmc: drop no compatible check
We are no longer depending on legacy device trees so drop the no compatible check for NAND and OneNAND nodes. Suggested-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Roger Quadros <rogerq@kernel.org> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250114-omap-gpmc-drop-no-compatible-check-v1-1-262c8d549732@kernel.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 8cf3310 commit edcccc6

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

drivers/memory/omap-gpmc.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2226,26 +2226,6 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
22262226
goto err;
22272227
}
22282228

2229-
if (of_node_name_eq(child, "nand")) {
2230-
/* Warn about older DT blobs with no compatible property */
2231-
if (!of_property_read_bool(child, "compatible")) {
2232-
dev_warn(&pdev->dev,
2233-
"Incompatible NAND node: missing compatible");
2234-
ret = -EINVAL;
2235-
goto err;
2236-
}
2237-
}
2238-
2239-
if (of_node_name_eq(child, "onenand")) {
2240-
/* Warn about older DT blobs with no compatible property */
2241-
if (!of_property_read_bool(child, "compatible")) {
2242-
dev_warn(&pdev->dev,
2243-
"Incompatible OneNAND node: missing compatible");
2244-
ret = -EINVAL;
2245-
goto err;
2246-
}
2247-
}
2248-
22492229
if (of_match_node(omap_nand_ids, child)) {
22502230
/* NAND specific setup */
22512231
val = 8;

0 commit comments

Comments
 (0)