]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02ae5f8c72d4acfcacc51750ac54db5b4f3d8b09
tree8bb04653044e7069663a207d4bc1c08ccd7d361b
parenteeea57e8c7fc6c486939f328c116b69aa972b672
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