|
|
@@ -525,10 +525,9 @@ static int gpio_keys_button_probe(struct platform_device *pdev,
|
|
|
button->active_low ? GPIOF_ACTIVE_LOW :
|
|
|
0), desc);
|
|
|
if (error) {
|
|
|
- if (error != -EPROBE_DEFER) {
|
|
|
- dev_err(dev, "unable to claim gpio %d, err=%d\n",
|
|
|
- button->gpio, error);
|
|
|
- }
|
|
|
+ dev_err_probe(dev, error,
|
|
|
+ "unable to claim gpio %d",
|
|
|
+ button->gpio);
|
|
|
goto out;
|
|
|
}
|
|
|
|