mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 06:34:12 +08:00
watchdog: ts4800: release syscon device node in ts4800_wdt_probe()
Put syscon device node when it is not needed anymore. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
This commit is contained in:
parent
c8ca6e70fb
commit
cd6ba41c19
@ -135,6 +135,7 @@ static int ts4800_wdt_probe(struct platform_device *pdev)
|
||||
/* set regmap and offset to know where to write */
|
||||
wdt->feed_offset = reg;
|
||||
wdt->regmap = syscon_node_to_regmap(syscon_np);
|
||||
of_node_put(syscon_np);
|
||||
if (IS_ERR(wdt->regmap)) {
|
||||
dev_err(&pdev->dev, "cannot get parent's regmap\n");
|
||||
return PTR_ERR(wdt->regmap);
|
||||
|
Loading…
Reference in New Issue
Block a user