watchdog: geodewdt: Use platform_driver_probe
authorJean Delvare <jdelvare@suse.de>
Fri, 14 Mar 2014 12:16:47 +0000 (13:16 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 31 Mar 2014 11:35:05 +0000 (13:35 +0200)
commit78411be4c7136054dab4635d2dbd848c3c9f7eae
tree8bb04653044e7069663a207d4bc1c08ccd7d361b
parentacaaaf62c94a786f68b35cd06979fbd2fcedc89b
watchdog: geodewdt: Use platform_driver_probe

Using platform_driver_probe instead of platform_driver_register has
two benefits:
* The driver will fail to load if device probing fails.
* The probe function can be marked __init.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/geodewdt.c