summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Brown <davidb@codeaurora.org>2013-03-12 11:41:49 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-25 10:37:21 -0700
commit4a6692e2ac4c6b09235a9568468dd83a380c271d (patch)
tree7ca33ee7acf29dc385260831877fb1e7bba99061 /include
parent7b67d5610879c8f1851a47fd5adfe7e924f3fe53 (diff)
downloadlinux-4a6692e2ac4c6b09235a9568468dd83a380c271d.tar.gz
linux-4a6692e2ac4c6b09235a9568468dd83a380c271d.tar.bz2
linux-4a6692e2ac4c6b09235a9568468dd83a380c271d.zip
ssbi: Allow compilation as a module
The ssbi driver's read/write entry points are protected with wrappers in the case when the driver isn't enabled. These wrappers don't make any sense, since a client of the SSBI bus won't work without it. Make these just regular functions, so that the SSBI driver can be built as a module. Signed-off-by: David Brown <davidb@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/msm_ssbi.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/msm_ssbi.h b/include/linux/msm_ssbi.h
index cfa47df6d003..0fe245bb2940 100644
--- a/include/linux/msm_ssbi.h
+++ b/include/linux/msm_ssbi.h
@@ -33,17 +33,6 @@ struct msm_ssbi_platform_data {
enum msm_ssbi_controller_type controller_type;
};
-#ifdef CONFIG_MSM_SSBI
int msm_ssbi_write(struct device *dev, u16 addr, u8 *buf, int len);
int msm_ssbi_read(struct device *dev, u16 addr, u8 *buf, int len);
-#else
-static inline int msm_ssbi_write(struct device *dev, u16 addr, u8 *buf, int len)
-{
- return -ENXIO;
-}
-static inline int msm_ssbi_read(struct device *dev, u16 addr, u8 *buf, int len)
-{
- return -ENXIO;
-}
-#endif
#endif