watchdog: advantechwdt: Use platform_driver_probe
authorJean Delvare <jdelvare@suse.de>
Fri, 14 Mar 2014 12:07:40 +0000 (13:07 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 31 Mar 2014 11:34:44 +0000 (13:34 +0200)
commitacaaaf62c94a786f68b35cd06979fbd2fcedc89b
treef2a7cc1867a97e9416ba896304c719bb1551706d
parentb0e0b4b5984ab1d59bc8569d28e499820b8ea8d8
watchdog: advantechwdt: 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/advantechwdt.c