Skip to content

Commit

Permalink
pwm: samsung: add missing s3c->pwm_id assignment
Browse files Browse the repository at this point in the history
The s3c->pwm_id is used to calculate offset of related register.

Signed-off-by: Joonyoung Shim <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
Joonyoung Shim authored and Thierry Reding committed Dec 14, 2012
1 parent 8fc6d09 commit 20e8ac3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/pwm/pwm-samsung.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ static int s3c_pwm_probe(struct platform_device *pdev)

/* calculate base of control bits in TCON */
s3c->tcon_base = id == 0 ? 0 : (id * 4) + 4;
s3c->pwm_id = id;
s3c->chip.dev = &pdev->dev;
s3c->chip.ops = &s3c_pwm_ops;
s3c->chip.base = -1;
Expand Down

0 comments on commit 20e8ac3

Please sign in to comment.