watchdog: t21x: Remove WDT IRQ handler only once
WDT IRQ is requested when WDT daemon is started early
during kernel boot. WDT daemon is stopped when user
space opens /dev/watchdog and then WDT IRQ is also freed.
If user space open/close /dev/watchdog multiple times,
then WDT IRQ free is getting called each time, even though
WDT daemon was already disabled first time user space
started watchdog.
To prevent this multiple free, IRQ free is moved to driver
remove. Also when user space is taking over WDT ping, IRQ is
disabled to stop WDT daemon from pinging WDT.
Bug
1976162
Change-Id: Iae2b8f78311f1f012b4d4078100662295472f069
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/
1629847
(cherry picked from commit
c7d7331a7cbaf0194c31a5a7de8cb4961e3df245)
Reviewed-on: https://git-master.nvidia.com/r/
1651378
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Tested-by: Winnie Hsu <whsu@nvidia.com>