diff options
-rw-r--r-- | drivers/input/keyboard/nspire-keypad.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/input/keyboard/nspire-keypad.c b/drivers/input/keyboard/nspire-keypad.c index 1b0d04c68d45..e0a1339e40e6 100644 --- a/drivers/input/keyboard/nspire-keypad.c +++ b/drivers/input/keyboard/nspire-keypad.c | |||
@@ -209,10 +209,8 @@ static int nspire_keypad_probe(struct platform_device *pdev) | |||
209 | } | 209 | } |
210 | 210 | ||
211 | keypad->reg_base = devm_ioremap_resource(&pdev->dev, res); | 211 | keypad->reg_base = devm_ioremap_resource(&pdev->dev, res); |
212 | if (IS_ERR(keypad->reg_base)) { | 212 | if (IS_ERR(keypad->reg_base)) |
213 | dev_err(&pdev->dev, "failed to remap I/O memory\n"); | ||
214 | return PTR_ERR(keypad->reg_base); | 213 | return PTR_ERR(keypad->reg_base); |
215 | } | ||
216 | 214 | ||
217 | keypad->input = input = devm_input_allocate_device(&pdev->dev); | 215 | keypad->input = input = devm_input_allocate_device(&pdev->dev); |
218 | if (!input) { | 216 | if (!input) { |