X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=drivers%2Fthermal%2Farmada_thermal.c;h=4b36a3022849aa89195a9df7ab37326ff567d057;hb=ac31f6e25d4e9e9dfda9c0621242036b291b7754;hp=92f67d40f2e96a876083a71b6287e2bf159243c6;hpb=d99de699ac034ff1b706496a33f49bd7e1e8ae30;p=uclinux-h8%2Flinux.git diff --git a/drivers/thermal/armada_thermal.c b/drivers/thermal/armada_thermal.c index 92f67d40f2e9..4b36a3022849 100644 --- a/drivers/thermal/armada_thermal.c +++ b/drivers/thermal/armada_thermal.c @@ -545,20 +545,14 @@ static int armada_thermal_probe_legacy(struct platform_device *pdev, priv->syscon = devm_regmap_init_mmio(&pdev->dev, base, &armada_thermal_regmap_config); - if (IS_ERR(priv->syscon)) - return PTR_ERR(priv->syscon); - - return 0; + return PTR_ERR_OR_ZERO(priv->syscon); } static int armada_thermal_probe_syscon(struct platform_device *pdev, struct armada_thermal_priv *priv) { priv->syscon = syscon_node_to_regmap(pdev->dev.parent->of_node); - if (IS_ERR(priv->syscon)) - return PTR_ERR(priv->syscon); - - return 0; + return PTR_ERR_OR_ZERO(priv->syscon); } static void armada_set_sane_name(struct platform_device *pdev,