summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-05-10 15:33:45 +0200
committerArnd Bergmann <arnd@arndb.de>2017-05-10 15:33:45 +0200
commit9dfe29d9d2b07ef3fe683d64f57ca06f03e17805 (patch)
tree98714f8861052dafe6da4316aab6d0b1e85a2563 /include
parentMerge tag 'v4.11-next-fixes' of https://github.com/mbgg/linux-mediatek into f... (diff)
parentsoc: renesas: Provide dummy rcar_rst_read_mode_pins() for compile-testing (diff)
downloadlinux-9dfe29d9d2b07ef3fe683d64f57ca06f03e17805.tar.xz
linux-9dfe29d9d2b07ef3fe683d64f57ca06f03e17805.zip
Merge tag 'renesas-fixes-for-v4.12' of https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into fixes
Pull "Renesas ARM Based SoC Fixes for v4.12" from Simon Horman: * Provide dummy rcar_rst_read_mode_pins() for compile-testing * tag 'renesas-fixes-for-v4.12' of https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas: soc: renesas: Provide dummy rcar_rst_read_mode_pins() for compile-testing
Diffstat (limited to 'include')
-rw-r--r--include/linux/soc/renesas/rcar-rst.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/soc/renesas/rcar-rst.h b/include/linux/soc/renesas/rcar-rst.h
index a18e0783946b..787e7ad53d45 100644
--- a/include/linux/soc/renesas/rcar-rst.h
+++ b/include/linux/soc/renesas/rcar-rst.h
@@ -1,6 +1,11 @@
#ifndef __LINUX_SOC_RENESAS_RCAR_RST_H__
#define __LINUX_SOC_RENESAS_RCAR_RST_H__
+#if defined(CONFIG_ARCH_RCAR_GEN1) || defined(CONFIG_ARCH_RCAR_GEN2) || \
+ defined(CONFIG_ARCH_R8A7795) || defined(CONFIG_ARCH_R8A7796)
int rcar_rst_read_mode_pins(u32 *mode);
+#else
+static inline int rcar_rst_read_mode_pins(u32 *mode) { return -ENODEV; }
+#endif
#endif /* __LINUX_SOC_RENESAS_RCAR_RST_H__ */