• Jonas Bonn's avatar
    ethoc: use devres resource management · a71fba97
    Jonas Bonn authored
    The point of using the devres resource management routines is that they
    simplify the driver by taking care of releasing resources on failure and
    release.  A recent commit added a bunch of error handling that is unnecessary
    in this context.
    
    This patch removes this redundant error handling, as well as using
    dmam_alloc_coherent in place of dma_alloc_coherent in order to use this
    framework consistenly throughout the driver.
    Signed-off-by: default avatarJonas Bonn <jonas@southpole.se>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a71fba97
ethoc.c 27.1 KB