watchdog: ib700wdt: Use platform_driver_probe
authorJean Delvare <jdelvare@suse.de>
Fri, 14 Mar 2014 12:18:47 +0000 (13:18 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 31 Mar 2014 11:35:26 +0000 (13:35 +0200)
commit996735ffd4560ee12d8dd98ad9d27379ee943890
tree13988707574e0cf78ce408558d04317b927b6236
parent78411be4c7136054dab4635d2dbd848c3c9f7eae
watchdog: ib700wdt: 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/ib700wdt.c