Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38d321c8 authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Walleij
Browse files

pinctrl: rockchip: testing the wrong variable



There is a copy and paste bug so we test "info->reg_base" instead of
"info->reg_pull".

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarHeiko Stuebner <heiko@sntech.de>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 6ce4eac1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);