irqchip: Remove redundant error printing

When devm_ioremap_resource() fails, a clear enough error message will be
printed by its subfunction __devm_ioremap_resource(). The error
information contains the device name, failure cause, and possibly resource
information.

Therefore, remove the error printing here to simplify code and reduce the
binary size.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210511125428.6108-2-thunder.leizhen@huawei.com

authored by Zhen Lei and committed by Marc Zyngier fbb80d5a 5b44955d

Changed files
+3 -9
drivers
+1 -3
drivers/irqchip/irq-mvebu-icu.c
··· 359 359 360 360 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 361 361 icu->base = devm_ioremap_resource(&pdev->dev, res); 362 - if (IS_ERR(icu->base)) { 363 - dev_err(&pdev->dev, "Failed to map icu base address.\n"); 362 + if (IS_ERR(icu->base)) 364 363 return PTR_ERR(icu->base); 365 - } 366 364 367 365 /* 368 366 * Legacy bindings: ICU is one node with one MSI parent: force manually
+1 -3
drivers/irqchip/irq-mvebu-sei.c
··· 384 384 385 385 sei->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 386 386 sei->base = devm_ioremap_resource(sei->dev, sei->res); 387 - if (IS_ERR(sei->base)) { 388 - dev_err(sei->dev, "Failed to remap SEI resource\n"); 387 + if (IS_ERR(sei->base)) 389 388 return PTR_ERR(sei->base); 390 - } 391 389 392 390 /* Retrieve the SEI capabilities with the interrupt ranges */ 393 391 sei->caps = of_device_get_match_data(&pdev->dev);
+1 -3
drivers/irqchip/irq-stm32-exti.c
··· 892 892 893 893 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 894 894 host_data->base = devm_ioremap_resource(dev, res); 895 - if (IS_ERR(host_data->base)) { 896 - dev_err(dev, "Unable to map registers\n"); 895 + if (IS_ERR(host_data->base)) 897 896 return PTR_ERR(host_data->base); 898 - } 899 897 900 898 for (i = 0; i < drv_data->bank_nr; i++) 901 899 stm32_exti_chip_init(host_data, i, np);