summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2011-05-13 11:12:06 +0530
committersaid m bagheri <ebgheri@steludxu2848.(none)>2011-06-17 13:41:44 +0200
commita8054d8fc4ec0df5d8445d8ce9103c85e5ba8a31 (patch)
treeabc217a2027fd6a0be6c3f03248a16dbf67d91f7 /include
parentb80c85f4a1fd73df37648a42be105451a61d7356 (diff)
u5500: support RTC_CLK1/2
ST-Ericsson Linux next: - ST-Ericsson ID: WP257121 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I5feb1dea92e5cc5d4ce57120cfbd320fc54629af Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/22993 Reviewed-by: Bibek BASU <bibek.basu@stericsson.com> Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> Fix to merge with 335a4a "u5500: support RTC_CLK1/2"
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/abx500.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mfd/abx500.h b/include/linux/mfd/abx500.h
index e9f58a70a78..2a5d8693f09 100644
--- a/include/linux/mfd/abx500.h
+++ b/include/linux/mfd/abx500.h
@@ -325,6 +325,15 @@ struct ab5500 {
#endif
};
+#ifndef CONFIG_AB5500_CORE
+static inline int ab5500_clock_rtc_enable(int num, bool enable)
+{
+ return -ENOSYS;
+}
+#else
+extern int ab5500_clock_rtc_enable(int num, bool enable);
+#endif
+
struct ab5500_regulator_platform_data;
struct ab5500_platform_data {
struct {unsigned int base; unsigned int count; } irq;