Skip to content

Commit

Permalink
Input: nspire-keypad - remove redundant dev_err call in nspire_keypad…
Browse files Browse the repository at this point in the history
…_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>
  • Loading branch information
Wei Yongjun authored and Dmitry Torokhov committed Jun 28, 2013
1 parent 31881d7 commit 20c3da9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/input/keyboard/nspire-keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 20c3da9

Please sign in to comment.