projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mpc85xx: Get rid of 'of_flat_dt_is_compatible'
[openwrt/openwrt.git]
/
target
/
linux
/
mpc85xx
/
files
/
arch
/
powerpc
/
platforms
/
85xx
/
tl_wdr4900_v1.c
diff --git
a/target/linux/mpc85xx/files/arch/powerpc/platforms/85xx/tl_wdr4900_v1.c
b/target/linux/mpc85xx/files/arch/powerpc/platforms/85xx/tl_wdr4900_v1.c
index 0b2ebcd00272c926a475964fd24ea85805c3a4a1..87a97e65c897ca0f061eca2c6dd21371719887b4 100644
(file)
--- a/
target/linux/mpc85xx/files/arch/powerpc/platforms/85xx/tl_wdr4900_v1.c
+++ b/
target/linux/mpc85xx/files/arch/powerpc/platforms/85xx/tl_wdr4900_v1.c
@@
-121,11
+121,8
@@
machine_arch_initcall(tl_wdr4900_v1, mpc85xx_common_publish_devices);
*/
static int __init tl_wdr4900_v1_probe(void)
{
- unsigned long root = of_get_flat_dt_root();
-
- if (of_flat_dt_is_compatible(root, "tplink,tl-wdr4900-v1"))
+ if (of_machine_is_compatible("tplink,tl-wdr4900-v1"))
return 1;
-
return 0;
}