Skip to content
Commit 540aea3d authored by William Breathitt Gray's avatar William Breathitt Gray Committed by Guenter Roeck
Browse files

watchdog: ebc-c384_wdt: Utilize devm_ functions in driver probe callback



The devm_ resource manager functions allow memory to be automatically
released when a device is unbound. This patch takes advantage of the
resource manager functions and replaces the watchdog_register_device
call with the devm_watchdog_register_device call. In addition, the
ebc_c384_wdt_remove function has been removed as no longer necessary due
to the use of the relevant devm_ resource manager functions.

Signed-off-by: default avatarWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 4b448c96
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment