]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/platforms/52xx/lite5200.c
[POWERPC] mpc5200: normalize compatible property bindings
[linux-2.6-omap-h63xx.git] / arch / powerpc / platforms / 52xx / lite5200.c
index 5a8d190f53e4303a86037d4eaa6e688f050d1614..fb35b285a146ccf2b3b4e589f51d259db20f0b8d 100644 (file)
  *
  */
 
+/* mpc5200 device tree match tables */
+static struct of_device_id mpc5200_cdm_ids[] __initdata = {
+       { .compatible = "fsl,mpc5200-cdm", },
+       { .compatible = "mpc5200-cdm", },
+       {}
+};
+
+static struct of_device_id mpc5200_gpio_ids[] __initdata = {
+       { .compatible = "fsl,mpc5200-gpio", },
+       { .compatible = "mpc5200-gpio", },
+       {}
+};
+
 /*
  * Fix clock configuration.
  *
@@ -44,9 +57,8 @@ lite5200_fix_clock_config(void)
 {
        struct device_node *np;
        struct mpc52xx_cdm  __iomem *cdm;
-
        /* Map zones */
-       np = of_find_compatible_node(NULL, NULL, "mpc5200-cdm");
+       np = of_find_matching_node(NULL, mpc5200_cdm_ids);
        cdm = of_iomap(np, 0);
        of_node_put(np);
        if (!cdm) {
@@ -81,7 +93,7 @@ lite5200_fix_port_config(void)
        struct mpc52xx_gpio __iomem *gpio;
        u32 port_config;
 
-       np = of_find_compatible_node(NULL, NULL, "mpc5200-gpio");
+       np = of_find_matching_node(NULL, mpc5200_gpio_ids);
        gpio = of_iomap(np, 0);
        of_node_put(np);
        if (!gpio) {