pwm: samsung: add missing s3c->pwm_id assignment
authorJoonyoung Shim <jy0922.shim@samsung.com>
Fri, 14 Dec 2012 06:58:58 +0000 (15:58 +0900)
committerThierry Reding <thierry.reding@avionic-design.de>
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 <jy0922.shim@samsung.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
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;