• Rob Herring's avatar
    bus: vexpress-config: simplify config bus probing · a5a38765
    Rob Herring authored
    The vexpress-config initialization is dependent on the vexpress-syscfg
    driver probing. As vexpress-config was not a driver, deferred probe
    could not be used and instead initcall ordering was relied upon. This is
    fragile and doesn't work for modules.
    
    Let's move the config bus init into the vexpress-syscfg probe. This
    eliminates the initcall ordering requirement and the need to create a
    struct device and the "vexpress-config" class.
    
    Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
    Cc: Linus Walleij <linus.walleij@linaro.org>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Reviewed-by: default avatarSudeep Holla <sudeep.holla@arm.com>
    Acked-by: default avatarLiviu Dudau <liviu.dudau@arm.com>
    Signed-off-by: default avatarRob Herring <robh@kernel.org>
    a5a38765
vexpress-config.c 9.09 KB