Input: nspire-keypad - remove redundant dev_err call in nspire_keypad_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 26 Jun 2013 16:32:50 +0000 (09:32 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 28 Jun 2013 06:24:29 +0000 (23:24 -0700)
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>
drivers/input/keyboard/nspire-keypad.c

index 1b0d04c68d459e2bc254c8b2fefbc82400d806ed..e0a1339e40e609136068da395ab0f534ea7124a2 100644 (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) {