ARM: SAMSUNG: Add a workaround for get_clock() for serial driver
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 7 Oct 2010 08:19:10 +0000 (17:19 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Fri, 8 Oct 2010 04:50:18 +0000 (13:50 +0900)
commit7cf4b482f06df0b590a9bc1561a5a81d67e0fe4c
tree694533686d5343b47e5bc0c4658080fcfbcc2a1c
parent4341f9b38fe33aab51439ae59593e149a6f61d9f
ARM: SAMSUNG: Add a workaround for get_clock() for serial driver

Serial drivers call get_clock() very early, before platform bus
has been set up, this requires a special check to let them get
a proper clock. Without this patch, a serial console is broken
on S5PV310 and S5PC210 boards.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
[kgene.kim@samsung.com: fix coding-style]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Cc: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-samsung/clock.c