pwm: samsung: add missing s3c->pwm_id assignment
authorJoonyoung Shim <[email protected]>
Fri, 14 Dec 2012 06:58:58 +0000 (15:58 +0900)
committerThierry Reding <[email protected]>
Fri, 14 Dec 2012 07:32:58 +0000 (08:32 +0100)
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]>
drivers/pwm/pwm-samsung.c

index 023a3bee76e7d04e9a76922d46c95addcf418086..0704a2abd8c67496380456dee7e9d6467609cbc9 100644 (file)
@@ -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;