watchdog: sch56xx-common: Add proper ref-counting of watchdog data

This fixes referencing free-ed memory in the corner case where /dev/watchdog
is open when the platform driver gets unbound from the platform device.

Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
1 file changed