提交 20c3da9f 编写于 作者: W Wei Yongjun 提交者: Dmitry Torokhov

Input: nspire-keypad - remove redundant dev_err call in nspire_keypad_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: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 31881d74
......@@ -209,10 +209,8 @@ static int nspire_keypad_probe(struct platform_device *pdev)
}
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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册