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)
commitb0e0b4b5984ab1d59bc8569d28e499820b8ea8d8
tree30b60ccd17c9782b63987b95cbf9e68db979ba2a
parentc90789baa8cec363093c5ec292c989b6f22d8f32
watchdog: acquirewdt: 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/acquirewdt.c