diff options
author | Sebastian Reichel <sre@debian.org> | 2013-11-19 16:53:31 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-11-25 21:28:09 -0500 |
commit | 0330f93a7fac5e3e91b1fe2d85f5a6b63f9e9857 (patch) | |
tree | bcf86c7b2ecd1df1dcf4d5be02f64b3b9d2476e7 /drivers/input | |
parent | c81e592696bbe1224506087eae8b4e02cd7186c3 (diff) |
Input: twl4030-pwrbutton - use dev_err for errors
Use dev_err() to output errors instead of dev_dbg().
Signed-off-by: Sebastian Reichel <sre@debian.org>
Reviewed-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/twl4030-pwrbutton.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/misc/twl4030-pwrbutton.c b/drivers/input/misc/twl4030-pwrbutton.c index 412ef0ecb439..88522d003ffe 100644 --- a/drivers/input/misc/twl4030-pwrbutton.c +++ b/drivers/input/misc/twl4030-pwrbutton.c | |||
@@ -60,7 +60,7 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev) | |||
60 | 60 | ||
61 | pwr = input_allocate_device(); | 61 | pwr = input_allocate_device(); |
62 | if (!pwr) { | 62 | if (!pwr) { |
63 | dev_dbg(&pdev->dev, "Can't allocate power button\n"); | 63 | dev_err(&pdev->dev, "Can't allocate power button\n"); |
64 | return -ENOMEM; | 64 | return -ENOMEM; |
65 | } | 65 | } |
66 | 66 | ||
@@ -74,13 +74,13 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev) | |||
74 | IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING, | 74 | IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING, |
75 | "twl4030_pwrbutton", pwr); | 75 | "twl4030_pwrbutton", pwr); |
76 | if (err < 0) { | 76 | if (err < 0) { |
77 | dev_dbg(&pdev->dev, "Can't get IRQ for pwrbutton: %d\n", err); | 77 | dev_err(&pdev->dev, "Can't get IRQ for pwrbutton: %d\n", err); |
78 | goto free_input_dev; | 78 | goto free_input_dev; |
79 | } | 79 | } |
80 | 80 | ||
81 | err = input_register_device(pwr); | 81 | err = input_register_device(pwr); |
82 | if (err) { | 82 | if (err) { |
83 | dev_dbg(&pdev->dev, "Can't register power button: %d\n", err); | 83 | dev_err(&pdev->dev, "Can't register power button: %d\n", err); |
84 | goto free_irq; | 84 | goto free_irq; |
85 | } | 85 | } |
86 | 86 | ||