watchdog: acquirewdt: Use platform_driver_probe
authorJean Delvare <jdelvare@suse.de>
Fri, 14 Mar 2014 12:04:37 +0000 (13:04 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 31 Mar 2014 11:34:30 +0000 (13:34 +0200)
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>

No differences found