]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: pl031: use per-vendor variables for special init
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 21 Jul 2012 00:55:03 +0000 (10:55 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:53:23 +0000 (13:53 +1000)
commit731ce68c3974948b6debae1e21d8d8b933a77208
treedfc910e70d3147026ae1583177cd37ab55a6760e
parenta63311aa2a30c2b4ca05b17262c8b70ad1e6c533
rtc: pl031: use per-vendor variables for special init

Instead of hard-checking for certain vendor codes, follow the pattern of
other AMBA (PrimeCell) drivers and use variables in the vendor data.  Get
rid of the locally cached vendor and hardware revision since we already
have the nice vendor data variable in the state.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-pl031.c