X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fregulator%2Fmax77686.c;h=ae001ccf26f42d952bec37c2a821c250e2307b3c;hb=cab87f062d0c57c9734257e4079ced489a3189b1;hp=de5b30ea823c93b0d71305396caf6be96c5f9eb4;hpb=42141f22e32a452b02b3dc8764d93223505e1c10;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c index de5b30ea823c..ae001ccf26f4 100644 --- a/drivers/regulator/max77686.c +++ b/drivers/regulator/max77686.c @@ -483,7 +483,6 @@ static int max77686_pmic_probe(struct platform_device *pdev) if (IS_ERR(max77686->rdev[i])) { dev_err(&pdev->dev, "regulator init failed for %d\n", i); - max77686->rdev[i] = NULL; return PTR_ERR(max77686->rdev[i]); } }