watchdog: s3c2410_wdt - Fix removing of platform device
authorWim Van Sebroeck <wim@iguana.be>
Fri, 21 May 2010 08:11:42 +0000 (08:11 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 8 Aug 2010 18:20:09 +0000 (18:20 +0000)
commit9a3725631331f279fa44b6522874ce8818bcc455
treed6d28e9c718c379847a2bf79b3fdaaaa2286c33c
parent2d53056973079e6c2ffc0d7ae3afbdd3d4f18ae3
watchdog: s3c2410_wdt - Fix removing of platform device

When removing the watchdog platform device, we need to
disable the access to userspace first. It makes no sense
to remove the drivers clock, irq's, ... and then disable
userspace access.
the order of removal has also been changed so that it
is the reverse of probing (this way the clock is also
disabled sooner).

Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/s3c2410_wdt.c