• Stephen Rothwell's avatar
    net: fix mdio section mismatch warning · f99b4a02
    Stephen Rothwell authored
    This fixes the following warning:
    
    WARNING: drivers/net/phy/built-in.o(.devexit.text+0x70): Section mismatch in reference from the function .mdio_gpio_bus_destroy() to the function .devinit.text:.mdio_gpio_bus_deinit()
    The function __devexit .mdio_gpio_bus_destroy() references
    a function __devinit .mdio_gpio_bus_deinit().
    This is often seen when error handling in the exit function
    uses functionality in the init path.
    The fix is often to remove the __devinit annotation of
    .mdio_gpio_bus_deinit() so it may be used outside an init section.
    Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f99b4a02
mdio-gpio.c 6.29 KB