+static struct of_device_id gamecube_of_bus[] = {
+       { .compatible = "nintendo,flipper", },
+       { },
+};
+
+static int __init gamecube_device_probe(void)
+{
+       if (!machine_is(gamecube))
+               return 0;
+
+       of_platform_bus_probe(NULL, gamecube_of_bus, NULL);
+       return 0;
+}

You really do not need a platform bus as far as I can see?


Segher

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to