watchdog: da9055_wdt: Drop reference counting
authorGuenter Roeck <linux@roeck-us.net>
Sat, 26 Dec 2015 00:01:44 +0000 (16:01 -0800)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 29 Dec 2015 19:36:04 +0000 (20:36 +0100)
commit43f676ace2e0591718ff493d290bc49b35ec2ffc
tree3104572b4239b6dc9f1b8e3228a4e9fa43c9f968
parent756d1e9247dff6d416b0c9e073247f5e808bb5fa
watchdog: da9055_wdt: Drop reference counting

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: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/da9055_wdt.c