powernv: Remove get/set_rtc_time when they are not present
authorMichael Neuling <mikey@neuling.org>
Fri, 29 Nov 2013 03:22:48 +0000 (14:22 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 5 Dec 2013 05:08:22 +0000 (16:08 +1100)
commit2c49195b6aedd21ff1cd1e095fab9866fba3411b
tree1ae7a913b17bba36135416b69caff5420e0ff283
parent0150a3dd92fc45b599bf2442b47d40921b4aa2d2
powernv: Remove get/set_rtc_time when they are not present

Currently we continue to poll get/set_rtc_time even when we know they
are not working.

This changes it so that if it fails at boot time we remove the ppc_md
get/set_rtc_time hooks so that we don't end up polling known broken
calls.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/powernv/opal-rtc.c