]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
[POWERPC] 86xx: mpc86xx_hpcn - Temporarily accept old dts node identifier.
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 16 Apr 2008 17:53:07 +0000 (13:53 -0400)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 17 Apr 2008 14:51:59 +0000 (09:51 -0500)
As suggested by Timur Tabi, we match on the old compat node ID for one
version and warn accordingly.  If we don't do this, we plunge people who
try to use an old DTB into silent boot death with no clear indication of
what the problem is.

This patch should be removed at the beginning of the 2.6.27 dev cycle.
It is only meant to ease the transition in the short term.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/86xx/mpc86xx_hpcn.c

index 0764032e85aac6afa2f96d28988f70096fc7af23..f947f555fd463458d17b617bee015878a2e632f2 100644 (file)
@@ -193,6 +193,12 @@ static int __init mpc86xx_hpcn_probe(void)
        if (of_flat_dt_is_compatible(root, "fsl,mpc8641hpcn"))
                return 1;       /* Looks good */
 
+       /* Be nice and don't give silent boot death.  Delete this in 2.6.27 */
+       if (of_flat_dt_is_compatible(root, "mpc86xx")) {
+               pr_warning("WARNING: your dts/dtb is old. You must update before the next kernel release\n");
+               return 1;
+       }
+
        return 0;
 }