Revert "rtc: at91sam9: fix OF node leak in probe() error path"

This reverts commit 88e113f9b3.
This commit is contained in:
Ksawlii 2024-11-24 00:23:01 +01:00
parent 18cb742137
commit e311b94c1c

View file

@ -368,7 +368,6 @@ static int at91_rtc_probe(struct platform_device *pdev)
return ret;
rtc->gpbr = syscon_node_to_regmap(args.np);
of_node_put(args.np);
rtc->gpbr_offset = args.args[0];
if (IS_ERR(rtc->gpbr)) {
dev_err(&pdev->dev, "failed to retrieve gpbr regmap, aborting.\n");