watchdog: xilinx: Simplify probe and remove functions
authorMichal Simek <michal.simek@xilinx.com>
Wed, 12 Feb 2014 13:34:34 +0000 (14:34 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 31 Mar 2014 11:29:04 +0000 (13:29 +0200)
commitf06cdfd184d845e1f01df7f636c0e3b5c5cc8d18
treeeeaf7275f2c54cc3ae7273e6eecfd6ee55f211e4
parent5cf4e69d39f6a31a5305d01690c1607356b1483b
watchdog: xilinx: Simplify probe and remove functions

Use devm_ helper function to simplify probe and error path.
Move ioremap to the beginning of probe function.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/of_xilinx_wdt.c