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: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
6ce4eac1f6
commit
38d321c899
|
@ -1453,8 +1453,8 @@ static int rockchip_pinctrl_probe(struct platform_device *pdev)
|
||||||
if (ctrl->type == RK3188) {
|
if (ctrl->type == RK3188) {
|
||||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
|
||||||
info->reg_pull = devm_ioremap_resource(&pdev->dev, res);
|
info->reg_pull = devm_ioremap_resource(&pdev->dev, res);
|
||||||
if (IS_ERR(info->reg_base))
|
if (IS_ERR(info->reg_pull))
|
||||||
return PTR_ERR(info->reg_base);
|
return PTR_ERR(info->reg_pull);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = rockchip_gpiolib_register(pdev, info);
|
ret = rockchip_gpiolib_register(pdev, info);
|
||||||
|
|
Loading…
Reference in New Issue