Skip to content

Commit 0330f93

Browse files
sredtor
authored andcommitted
Input: twl4030-pwrbutton - use dev_err for errors
Use dev_err() to output errors instead of dev_dbg(). Signed-off-by: Sebastian Reichel <[email protected]> Reviewed-by: Aaro Koskinen <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent c81e592 commit 0330f93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/input/misc/twl4030-pwrbutton.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev)
6060

6161
pwr = input_allocate_device();
6262
if (!pwr) {
63-
dev_dbg(&pdev->dev, "Can't allocate power button\n");
63+
dev_err(&pdev->dev, "Can't allocate power button\n");
6464
return -ENOMEM;
6565
}
6666

@@ -74,13 +74,13 @@ static int twl4030_pwrbutton_probe(struct platform_device *pdev)
7474
IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING,
7575
"twl4030_pwrbutton", pwr);
7676
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);
7878
goto free_input_dev;
7979
}
8080

8181
err = input_register_device(pwr);
8282
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);
8484
goto free_irq;
8585
}
8686

0 commit comments

Comments
 (0)