pinctrl: nsp: remove redundant dev_err call in nsp_pinmux_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Ray Jui <ray.jui@broadcom.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Родитель
1e359ab128
Коммит
a6e5e4a624
|
@ -573,10 +573,8 @@ static int nsp_pinmux_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||||
pinctrl->base0 = devm_ioremap_resource(&pdev->dev, res);
|
pinctrl->base0 = devm_ioremap_resource(&pdev->dev, res);
|
||||||
if (IS_ERR(pinctrl->base0)) {
|
if (IS_ERR(pinctrl->base0))
|
||||||
dev_err(&pdev->dev, "unable to map I/O space\n");
|
|
||||||
return PTR_ERR(pinctrl->base0);
|
return PTR_ERR(pinctrl->base0);
|
||||||
}
|
|
||||||
|
|
||||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
|
||||||
pinctrl->base1 = devm_ioremap_nocache(&pdev->dev, res->start,
|
pinctrl->base1 = devm_ioremap_nocache(&pdev->dev, res->start,
|
||||||
|
@ -588,10 +586,8 @@ static int nsp_pinmux_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 2);
|
||||||
pinctrl->base2 = devm_ioremap_resource(&pdev->dev, res);
|
pinctrl->base2 = devm_ioremap_resource(&pdev->dev, res);
|
||||||
if (IS_ERR(pinctrl->base2)) {
|
if (IS_ERR(pinctrl->base2))
|
||||||
dev_err(&pdev->dev, "unable to map I/O space\n");
|
|
||||||
return PTR_ERR(pinctrl->base2);
|
return PTR_ERR(pinctrl->base2);
|
||||||
}
|
|
||||||
|
|
||||||
ret = nsp_mux_log_init(pinctrl);
|
ret = nsp_mux_log_init(pinctrl);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче