• David S. Miller's avatar
    Fix generic device layer init sequence. · fe91ab5e
    David S. Miller authored
    Generic BUS objects have to be registered before
    devices assosciated with them are probed.  Therefore
    subsys_initcall is inappropriate for such setups.
    It does not work to use core_initcall for this because
    the generic device layer bits need to be setup first too.
    So we rename unused_initcall to postcore_initcall and use
    this new initcall level for generic BUS object init.
    This fixes bootup on Alpha, and Sparc64.  X86 was working
    by what looks to be luck in link order.
    fe91ab5e
init.h 5.81 KB