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 <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
}
keypad->reg_base = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(keypad->reg_base)) {
- dev_err(&pdev->dev, "failed to remap I/O memory\n");
+ if (IS_ERR(keypad->reg_base))
return PTR_ERR(keypad->reg_base);
- }
keypad->input = input = devm_input_allocate_device(&pdev->dev);
if (!input) {