Revert "reset: berlin: fix OF node leak in probe() error path"
This reverts commit 96c6df25b4
.
This commit is contained in:
parent
8f2b757619
commit
a93e0b43e7
1 changed files with 1 additions and 2 deletions
|
@ -68,14 +68,13 @@ static int berlin_reset_xlate(struct reset_controller_dev *rcdev,
|
|||
|
||||
static int berlin2_reset_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct device_node *parent_np;
|
||||
struct device_node *parent_np = of_get_parent(pdev->dev.of_node);
|
||||
struct berlin_reset_priv *priv;
|
||||
|
||||
priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
|
||||
if (!priv)
|
||||
return -ENOMEM;
|
||||
|
||||
parent_np = of_get_parent(pdev->dev.of_node);
|
||||
priv->regmap = syscon_node_to_regmap(parent_np);
|
||||
of_node_put(parent_np);
|
||||
if (IS_ERR(priv->regmap))
|
||||
|
|
Loading…
Reference in a new issue