git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
of/flattree: Add of_flat_dt_match() helper function
[pandora-kernel.git]
/
arch
/
powerpc
/
platforms
/
512x
/
mpc5121_generic.c
diff --git
a/arch/powerpc/platforms/512x/mpc5121_generic.c
b/arch/powerpc/platforms/512x/mpc5121_generic.c
index
e487eb0
..
926731f
100644
(file)
--- a/
arch/powerpc/platforms/512x/mpc5121_generic.c
+++ b/
arch/powerpc/platforms/512x/mpc5121_generic.c
@@
-26,7
+26,7
@@
/*
* list of supported boards
*/
/*
* list of supported boards
*/
-static char *board[] __initdata = {
+static c
onst c
har *board[] __initdata = {
"prt,prtlvt",
NULL
};
"prt,prtlvt",
NULL
};
@@
-36,16
+36,7
@@
static char *board[] __initdata = {
*/
static int __init mpc5121_generic_probe(void)
{
*/
static int __init mpc5121_generic_probe(void)
{
- unsigned long node = of_get_flat_dt_root();
- int i = 0;
-
- while (board[i]) {
- if (of_flat_dt_is_compatible(node, board[i]))
- break;
- i++;
- }
-
- return board[i] != NULL;
+ return of_flat_dt_match(of_get_flat_dt_root(), board);
}
define_machine(mpc5121_generic) {
}
define_machine(mpc5121_generic) {