[ARM] S3C: Fix scaler1 clock rate information
commit956a711c158cab42c3b3c3ab018dacd91d7440e9
authorBen Dooks <ben-linux@fluff.org>
Fri, 21 Nov 2008 10:36:06 +0000 (21 10:36 +0000)
committerBen Dooks <ben-linux@fluff.org>
Fri, 21 Nov 2008 10:36:40 +0000 (21 10:36 +0000)
tree4dc228112e890353be2ffbe6fd949b40d2254201
parent98036742342c164f6fede75a3a20dfca66d7ce5f
[ARM] S3C: Fix scaler1 clock rate information

The pwm-scaler0 and pwm-scaler1 clocks have their
.id field set to -1 as they are not referenced to
any specific device. However, parts of the pwm-clock
code used the .id field to identify which scaler
clock was being used.

Fix the problem by comparing against the pointer to
the clock to identify the scalers.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-s3c/pwm-clock.c