diff options
author | 2017-01-10 15:21:44 -0800 | |
---|---|---|
committer | 2017-02-24 14:00:23 -0800 | |
commit | 7db1634d62d4b521c97ca3439221ee870bcc38f2 (patch) | |
tree | 92096b821b3f83137c8665e1986c6003f6d91733 /kernel/rcu/sync.c | |
parent | watchdog: coh901327_wdt: Use dev variable instead of pdev->dev (diff) | |
download | linux-7db1634d62d4b521c97ca3439221ee870bcc38f2.tar.gz linux-7db1634d62d4b521c97ca3439221ee870bcc38f2.tar.bz2 linux-7db1634d62d4b521c97ca3439221ee870bcc38f2.zip |
watchdog: aspeed_wdt: Convert to use device managed functions
Use device managed functions to simplify error handling, reduce
source code size, improve readability, and reduce the likelyhood of bugs.
The conversion was done automatically with coccinelle using the
following semantic patches. The semantic patches and the scripts used
to generate this commit log are available at
https://github.com/groeck/coccinelle-patches
- Drop assignments to otherwise unused variables
- Drop remove function
- Drop platform_set_drvdata()
- Use devm_watchdog_register_driver() to register watchdog device
Acked-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'kernel/rcu/sync.c')
0 files changed, 0 insertions, 0 deletions