Skip to content

Commit ecefeb7

Browse files
Jingoo HanThierry Reding
authored andcommitted
pwm: samsung: add missing device pointer to struct pwm_chip
This patch adds missing device pointer to struct pwm_chip. If the device pointer is NULL, pwmchip_add() will return error. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent dfeb86e commit ecefeb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pwm/pwm-samsung.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ static int s3c_pwm_probe(struct platform_device *pdev)
225225

226226
/* calculate base of control bits in TCON */
227227
s3c->tcon_base = id == 0 ? 0 : (id * 4) + 4;
228+
s3c->chip.dev = &pdev->dev;
228229
s3c->chip.ops = &s3c_pwm_ops;
229230
s3c->chip.base = -1;
230231
s3c->chip.npwm = 1;

0 commit comments

Comments
 (0)