pinctrl: rockchip: testing the wrong variable
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Nov 2013 10:01:38 +0000 (02:01 -0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 25 Nov 2013 08:08:18 +0000 (09:08 +0100)
There is a copy and paste bug so we test "info->reg_base" instead of
"info->reg_pull".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rockchip.c

index e939c28cbf1fe13573f7538a2e9d01071b094aa1..fe2ec1bdf56ed4778fe074119cf4148b2aa8358e 100644 (file)
@@ -1453,8 +1453,8 @@ static int rockchip_pinctrl_probe(struct platform_device *pdev)
        if (ctrl->type == RK3188) {
                res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
                info->reg_pull = devm_ioremap_resource(&pdev->dev, res);
-               if (IS_ERR(info->reg_base))
-                       return PTR_ERR(info->reg_base);
+               if (IS_ERR(info->reg_pull))
+                       return PTR_ERR(info->reg_pull);
        }
 
        ret = rockchip_gpiolib_register(pdev, info);