X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fregulator%2Fmax14577.c;h=186df8785a912483ee84050160649eb7911037c2;hb=d05d7803405f18b0f923cc395676a10a2b5e7201;hp=b1078ba3f39381338f2691f7585961337cf536c1;hpb=9b244b5dc720f2b2135b2e64d44ab10220c2bf21;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/regulator/max14577.c b/drivers/regulator/max14577.c index b1078ba3f393..186df8785a91 100644 --- a/drivers/regulator/max14577.c +++ b/drivers/regulator/max14577.c @@ -168,10 +168,11 @@ static int max14577_regulator_dt_parse_pdata(struct platform_device *pdev) MAX14577_REG_MAX); if (ret < 0) { dev_err(&pdev->dev, "Error parsing regulator init data: %d\n", ret); - return ret; } - return 0; + of_node_put(np); + + return ret; } static inline struct regulator_init_data *match_init_data(int index)