diff options
| author | Guenter Roeck <[email protected]> | 2019-04-08 12:38:29 -0700 |
|---|---|---|
| committer | Wim Van Sebroeck <[email protected]> | 2019-05-05 21:02:15 +0200 |
| commit | dcbb613fa8de951e0161bb4cd5205fca33731f09 (patch) | |
| tree | 28305cf491774165e834de0f6a5f19a76bd5b538 | |
| parent | f332ce5d88f10374fa7ff4d2d350a4c96998e6f2 (diff) | |
watchdog: bcm2835_wdt: drop platform_set_drvdata
There is no call to platform_get_drvdata() in the driver,
so platform_set_drvdata() is unnecessary and can be dropped.
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
Cc: Florian Fainelli <[email protected]>
Cc: Ray Jui <[email protected]>
Cc: Scott Branden <[email protected]>
Cc: [email protected]
Cc: Eric Anholt <[email protected]>
Cc: Stefan Wahren <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Acked-by: Stefan Wahren <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
| -rw-r--r-- | drivers/watchdog/bcm2835_wdt.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/watchdog/bcm2835_wdt.c b/drivers/watchdog/bcm2835_wdt.c index 1834524ae373..560c1c54c177 100644 --- a/drivers/watchdog/bcm2835_wdt.c +++ b/drivers/watchdog/bcm2835_wdt.c @@ -177,7 +177,6 @@ static int bcm2835_wdt_probe(struct platform_device *pdev) wdt = devm_kzalloc(dev, sizeof(struct bcm2835_wdt), GFP_KERNEL); if (!wdt) return -ENOMEM; - platform_set_drvdata(pdev, wdt); spin_lock_init(&wdt->lock); |