• M
    [media] ene-ir: Fix cleanup on probe failure · 56411c0f
    Matthijs Kooijman 提交于
    This makes the cleanup on probe failure more consistent with other
    drivers. This is similar to what commit
    f27b853e ("[media] rc: Fix invalid
    free_region and/or free_irq on probe failure") did for some other
    drivers.
    In addition to making the cleanup more consistent, this also fixes a
    case where (on a ene_hw_detect failure) free_region would be called on a
    region that was not requested yet.
    This last problem was probably introduced by the moving of code in
    commit b31b0219 ("[media] ene_ir: Fix
    driver initialisation") and commit
    9ef449c6 ("[media] rc: Postpone ISR
    registration").
    Signed-off-by: NMatthijs Kooijman <matthijs@stdin.nl>
    Cc: Maxim Levitsky <maximlevitsky@gmail.com>
    Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
    56411c0f
ene_ir.c 31.1 KB