ASoC: use resource_size for au1x
authorWan ZongShun <mcuos.com@gmail.com>
Tue, 1 Jun 2010 07:16:20 +0000 (15:16 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 3 Jun 2010 18:00:16 +0000 (19:00 +0100)
commitc0da5500e9962e23ee8bb0bce9cb4307d44c0ae7
tree8eb69bd02ec962134f6e358d08a2695affa76d75
parent5ef650ae5c94ee4d593169b82b6c306093360765
ASoC: use resource_size for au1x

Use the resource_size function instead of manually calculating the
resource size.This patch can reduce the chance of introducing off-by-one
errors.

Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
Acked-by: Manuel Lauss <manuel.lauss@googlemail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/au1x/psc-ac97.c
sound/soc/au1x/psc-i2s.c
sound/soc/au1x/psc.h