]> git.baikalelectronics.ru Git - kernel.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)
commit3dd564bf259cdcef6a452492b59072bf9b33c81a
treee7d58f1c7da78f2226c8eeb850ec85b1819de61f
parentef8d819a3b8c606d4d056f9e216e58ced502ae6a
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