On Wed, Feb 8, 2012 at 11:40 PM, Zhicheng Fan [off-list ref] wrote:
+static int __init p1020_rdb_pc_probe(void)
+{
+ =A0 =A0 =A0 unsigned long root =3D of_get_flat_dt_root();
+
+ =A0 =A0 =A0 if (of_flat_dt_is_compatible(root, "fsl,P1020RDB-PC"))
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 return 1;
+ =A0 =A0 =A0 return 0;
+}
static int __init p1020_rdb_pc_probe(void)
{
unsigned long root =3D of_get_flat_dt_root();
return of_flat_dt_is_compatible(root, "fsl,P1020RDB-PC");
}
--=20
Timur Tabi
Linux kernel developer at Freescale=