|
@@ -121,11 +121,8 @@ machine_arch_initcall(tl_wdr4900_v1, mpc85xx_common_publish_devices);
|
|
|
*/
|
|
*/
|
|
|
static int __init tl_wdr4900_v1_probe(void)
|
|
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 1;
|
|
|
-
|
|
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|
|
|
|
|
|