]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/platforms/52xx/mpc52xx_pm.c
[POWERPC] mpc5200: normalize compatible property bindings
[linux-2.6-omap-h63xx.git] / arch / powerpc / platforms / 52xx / mpc52xx_pm.c
index 52f027789c8f96e3070ef1aaf6ecb215c04088a9..c72d3304387ffb8ca692f91d369cc32014105089 100644 (file)
@@ -60,9 +60,16 @@ int mpc52xx_set_wakeup_gpio(u8 pin, u8 level)
 int mpc52xx_pm_prepare(void)
 {
        struct device_node *np;
+       const struct of_device_id immr_ids[] = {
+               { .compatible = "fsl,mpc5200-immr", },
+               { .compatible = "fsl,mpc5200b-immr", },
+               { .type = "soc", .compatible = "mpc5200", }, /* lite5200 */
+               { .type = "builtin", .compatible = "mpc5200", }, /* efika */
+               {}
+       };
 
        /* map the whole register space */
-       np = of_find_compatible_node(NULL, NULL, "mpc5200");
+       np = of_find_matching_node(NULL, immr_ids);
        mbar = of_iomap(np, 0);
        of_node_put(np);
        if (!mbar) {