> +static int __init prpmc2800_register_mtd(void) > +{ > + struct device_node *np; > + > + np = of_find_compatible_node(NULL, "rom", "direct-mapped"); > + of_platform_device_create(np, np->name, NULL); > +} Needs error checking -- what if the node doesn't exist. Segher