]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rtc: pl031: use per-vendor variables for special init
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 30 Jul 2012 21:41:36 +0000 (14:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:18 +0000 (17:25 -0700)
commit1bb457fc9268bb75156af8db78b72a4463baaec4
treee7d58f1c7da78f2226c8eeb850ec85b1819de61f
parentaff05ed5d103524bd69bd9d7b621c5c8a6c63198
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-pl031.c