diff options
author | William Breathitt Gray <vilhelm.gray@gmail.com> | 2017-01-24 23:02:33 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2017-02-24 23:00:23 +0100 |
commit | 540aea3dbffc6a75d0b3b77db1cde36a065a6ab5 (patch) | |
tree | d823ea7d647850588347553009b72e684cd92312 /drivers/watchdog/w83627hf_wdt.c | |
parent | watchdog: tegra_wdt: Convert to use device managed functions (diff) | |
download | linux-540aea3dbffc6a75d0b3b77db1cde36a065a6ab5.tar.xz linux-540aea3dbffc6a75d0b3b77db1cde36a065a6ab5.zip |
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: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/watchdog/w83627hf_wdt.c')
0 files changed, 0 insertions, 0 deletions