watchdog: gpio_wdt: Fix missing platform_set_drvdata() in gpio_wdt_probe()
authorWei Yongjun <weiyj.lk@gmail.com>
Tue, 26 Jul 2016 14:50:14 +0000 (14:50 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Wed, 27 Jul 2016 08:47:43 +0000 (10:47 +0200)
commit1ac06563434e5f3302259608d3589bf7002431fe
tree0d3f8c110403103a2023386e2e397c50a0a93fec
parent3c10bbde10fe4dca52726e246cefa6b0a1dfbd3e
watchdog: gpio_wdt: Fix missing platform_set_drvdata() in gpio_wdt_probe()

Add missing platform_set_drvdata() in gpio_wdt_probe(), otherwise
calling platform_get_drvdata() in remove returns NULL.

This is detected by Coccinelle semantic patch.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/gpio_wdt.c