]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
memory: omap-gpmc: drop no compatible check
authorRoger Quadros <rogerq@kernel.org>
Mon, 10 Mar 2025 14:15:14 +0000 (15:15 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 14 Mar 2025 16:59:17 +0000 (17:59 +0100)
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>
drivers/memory/omap-gpmc.c

index e2a75a52563f5de2a1f4d4634996cf25af6b8ee7..53f1888cc84f6884ea35fdc3b1456daf7520851e 100644 (file)
@@ -2226,26 +2226,6 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
                goto err;
        }
 
-       if (of_node_name_eq(child, "nand")) {
-               /* Warn about older DT blobs with no compatible property */
-               if (!of_property_read_bool(child, "compatible")) {
-                       dev_warn(&pdev->dev,
-                                "Incompatible NAND node: missing compatible");
-                       ret = -EINVAL;
-                       goto err;
-               }
-       }
-
-       if (of_node_name_eq(child, "onenand")) {
-               /* Warn about older DT blobs with no compatible property */
-               if (!of_property_read_bool(child, "compatible")) {
-                       dev_warn(&pdev->dev,
-                                "Incompatible OneNAND node: missing compatible");
-                       ret = -EINVAL;
-                       goto err;
-               }
-       }
-
        if (of_match_node(omap_nand_ids, child)) {
                /* NAND specific setup */
                val = 8;