Skip to content

Commit

Permalink
[POWERPC] 86xx: mpc86xx_hpcn - Temporarily accept old dts node identi…
Browse files Browse the repository at this point in the history
…fier.

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 <[email protected]>
Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
Paul Gortmaker authored and kumargala committed Apr 17, 2008
1 parent 06f35b4 commit 16787b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 16787b4

Please sign in to comment.