mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
gpio: bcm-kona: Fix return value of bcm_kona_gpio_probe()
[ Upstream commit98f7d1b15e
] Propagate the error code returned by devm_platform_ioremap_resource() out of probe() instead of overwriting it. Fixes:72d8cb7154
("drivers: gpio: bcm-kona: use devm_platform_ioremap_resource()") Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> [Bartosz: tweaked the commit message] Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
d6d07089de
commit
b191e3ea6d
1 changed files with 1 additions and 1 deletions
|
@ -619,7 +619,7 @@ static int bcm_kona_gpio_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
kona_gpio->reg_base = devm_platform_ioremap_resource(pdev, 0);
|
kona_gpio->reg_base = devm_platform_ioremap_resource(pdev, 0);
|
||||||
if (IS_ERR(kona_gpio->reg_base)) {
|
if (IS_ERR(kona_gpio->reg_base)) {
|
||||||
ret = -ENXIO;
|
ret = PTR_ERR(kona_gpio->reg_base);
|
||||||
goto err_irq_domain;
|
goto err_irq_domain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue