Revert "rtc: at91sam9: fix OF node leak in probe() error path"
This reverts commit 88e113f9b3
.
This commit is contained in:
parent
18cb742137
commit
e311b94c1c
1 changed files with 0 additions and 1 deletions
|
@ -368,7 +368,6 @@ static int at91_rtc_probe(struct platform_device *pdev)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
rtc->gpbr = syscon_node_to_regmap(args.np);
|
rtc->gpbr = syscon_node_to_regmap(args.np);
|
||||||
of_node_put(args.np);
|
|
||||||
rtc->gpbr_offset = args.args[0];
|
rtc->gpbr_offset = args.args[0];
|
||||||
if (IS_ERR(rtc->gpbr)) {
|
if (IS_ERR(rtc->gpbr)) {
|
||||||
dev_err(&pdev->dev, "failed to retrieve gpbr regmap, aborting.\n");
|
dev_err(&pdev->dev, "failed to retrieve gpbr regmap, aborting.\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue