• Guenter Roeck's avatar
    watchdog: da9052_wdt: Drop reference counting · 756d1e92
    Guenter Roeck authored
    Reference counting is now implemented in the watchdog core and no longer
    required in watchdog drivers.
    
    Since it was implememented a no-op, and since the local memory is allocated
    with devm_kzalloc(), the reference counting code in the driver really did
    not really work anyway, and this patch effectively fixes a bug which could
    cause a crash on unloading if the watchdog device was still open.
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
    756d1e92
da9052_wdt.c 5.21 KB