We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41f1b3e commit b4c385bCopy full SHA for b4c385b
drivers/video/backlight/lm3630a_bl.c
@@ -560,10 +560,9 @@ static int lm3630a_probe(struct i2c_client *client)
560
/* pwm */
561
if (pdata->pwm_ctrl != LM3630A_PWM_DISABLE) {
562
pchip->pwmd = devm_pwm_get(pchip->dev, "lm3630a-pwm");
563
- if (IS_ERR(pchip->pwmd)) {
564
- dev_err(&client->dev, "fail : get pwm device\n");
565
- return PTR_ERR(pchip->pwmd);
566
- }
+ if (IS_ERR(pchip->pwmd))
+ return dev_err_probe(&client->dev, PTR_ERR(pchip->pwmd),
+ "fail : get pwm device\n");
567
568
pwm_init_state(pchip->pwmd, &pchip->pwmd_state);
569
}
0 commit comments