summaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/tca8418_keypad.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2012-11-14 08:20:21 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-11-29 09:30:36 -0800
commit91c5d67f17784078169bdcce4c21df82ac6c234c (patch)
tree24c3d53e322c6f0fa5d702bf395573d5f9b1c722 /drivers/input/keyboard/tca8418_keypad.c
parent5cc0dfe043f84a777bf9d66dc48cc2b83709c9ef (diff)
downloadblackbird-op-linux-91c5d67f17784078169bdcce4c21df82ac6c234c.tar.gz
blackbird-op-linux-91c5d67f17784078169bdcce4c21df82ac6c234c.zip
Input: tca8418_keypad - increase severity of failures in probe()
Failures to build a keymap, request an IRQ, or register input device are fatal for the driver, therefore the messages should have "error" severity instead of "debug". Reviewed-by: Alban Bedel <alban.bedel@avionic-design.de> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard/tca8418_keypad.c')
-rw-r--r--drivers/input/keyboard/tca8418_keypad.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/keyboard/tca8418_keypad.c b/drivers/input/keyboard/tca8418_keypad.c
index 9084327efb3a..8fcce37b089b 100644
--- a/drivers/input/keyboard/tca8418_keypad.c
+++ b/drivers/input/keyboard/tca8418_keypad.c
@@ -348,7 +348,7 @@ static int tca8418_keypad_probe(struct i2c_client *client,
error = matrix_keypad_build_keymap(keymap_data, NULL, rows, cols,
keypad_data->keymap, input);
if (error) {
- dev_dbg(dev, "Failed to build keymap\n");
+ dev_err(dev, "Failed to build keymap\n");
goto fail2;
}
@@ -367,14 +367,14 @@ static int tca8418_keypad_probe(struct i2c_client *client,
IRQF_ONESHOT,
client->name, keypad_data);
if (error) {
- dev_dbg(dev, "Unable to claim irq %d; error %d\n",
+ dev_err(dev, "Unable to claim irq %d; error %d\n",
client->irq, error);
goto fail2;
}
error = input_register_device(input);
if (error) {
- dev_dbg(dev, "Unable to register input device, error: %d\n",
+ dev_err(dev, "Unable to register input device, error: %d\n",
error);
goto fail3;
}
OpenPOWER on IntegriCloud