From: Axel Lin Date: Sat, 24 Mar 2012 02:56:00 +0000 (+0800) Subject: regulator: tps65090: Use IS_ERR to check return value of regulator_register X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0ca2d6e65268477a53f959320a43d13b0c4d6b70;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git regulator: tps65090: Use IS_ERR to check return value of regulator_register regulator_register never returns NULL. Signed-off-by: Axel Lin Acked by: Venu Byravarasu Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/tps65090-regulator.c b/drivers/regulator/tps65090-regulator.c index 6c28e3a3f664..470ca7e366cf 100644 --- a/drivers/regulator/tps65090-regulator.c +++ b/drivers/regulator/tps65090-regulator.c @@ -153,7 +153,7 @@ static int __devinit tps65090_regulator_probe(struct platform_device *pdev) rdev = regulator_register(&ri->desc, &pdev->dev, &tps_pdata->regulator, ri, NULL); - if (IS_ERR_OR_NULL(rdev)) { + if (IS_ERR(rdev)) { dev_err(&pdev->dev, "failed to register regulator %s\n", ri->desc.name); return PTR_ERR(rdev);