johan.adolfsson at axis.com said: > How about letting mtdram_init_device return an allocated mtd_info* > and the caller is responsible for cleaning it up? The hardcoded init > functions store the returned pointer in the static mtd_info variable > and do it's clean-up on exit. Seems reasonable. -- dwmw2