Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20c3da9f authored by Wei Yongjun's avatar Wei Yongjun Committed by Dmitry Torokhov
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 31881d74
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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) {