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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
Wei Yongjun 2013-06-26 09:32:50 -07:00 committed by Dmitry Torokhov
parent 31881d74b6
commit 20c3da9f9f

View File

@ -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) {