diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2013-03-20 04:46:15 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-05 05:20:13 -0400 |
commit | 5ebeaff5c5be9f21680b91aac77ee155d935f888 (patch) | |
tree | 70a4cf5578f27bf30f54626f7523cb8c7294320a /drivers/mfd/cros_ec.c | |
parent | 6af6dc2d2aa654e928ed0a64c28724d1cd2c36c1 (diff) |
mfd: cros_ec: Export needed symbols for the i2c and spi modules
In order to fix those, when all cros code is modular:
ERROR: "cros_ec_prepare_tx" [drivers/mfd/cros_ec_spi.ko] undefined!
ERROR: "cros_ec_register" [drivers/mfd/cros_ec_spi.ko] undefined!
ERROR: "cros_ec_remove" [drivers/mfd/cros_ec_spi.ko] undefined!
ERROR: "cros_ec_suspend" [drivers/mfd/cros_ec_spi.ko] undefined!
ERROR: "cros_ec_resume" [drivers/mfd/cros_ec_spi.ko] undefined!
ERROR: "cros_ec_register" [drivers/mfd/cros_ec_i2c.ko] undefined!
ERROR: "cros_ec_remove" [drivers/mfd/cros_ec_i2c.ko] undefined!
ERROR: "cros_ec_suspend" [drivers/mfd/cros_ec_i2c.ko] undefined!
ERROR: "cros_ec_resume" [drivers/mfd/cros_ec_i2c.ko] undefined!
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/cros_ec.c')
-rw-r--r-- | drivers/mfd/cros_ec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mfd/cros_ec.c b/drivers/mfd/cros_ec.c index ac824ccab52a..10cd14e35eb0 100644 --- a/drivers/mfd/cros_ec.c +++ b/drivers/mfd/cros_ec.c | |||
@@ -19,6 +19,7 @@ | |||
19 | 19 | ||
20 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
21 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
22 | #include <linux/module.h> | ||
22 | #include <linux/mfd/core.h> | 23 | #include <linux/mfd/core.h> |
23 | #include <linux/mfd/cros_ec.h> | 24 | #include <linux/mfd/cros_ec.h> |
24 | #include <linux/mfd/cros_ec_commands.h> | 25 | #include <linux/mfd/cros_ec_commands.h> |
@@ -41,6 +42,7 @@ int cros_ec_prepare_tx(struct cros_ec_device *ec_dev, | |||
41 | 42 | ||
42 | return EC_MSG_TX_PROTO_BYTES + msg->out_len; | 43 | return EC_MSG_TX_PROTO_BYTES + msg->out_len; |
43 | } | 44 | } |
45 | EXPORT_SYMBOL(cros_ec_prepare_tx); | ||
44 | 46 | ||
45 | static int cros_ec_command_sendrecv(struct cros_ec_device *ec_dev, | 47 | static int cros_ec_command_sendrecv(struct cros_ec_device *ec_dev, |
46 | uint16_t cmd, void *out_buf, int out_len, | 48 | uint16_t cmd, void *out_buf, int out_len, |
@@ -150,6 +152,7 @@ fail_dout: | |||
150 | fail_din: | 152 | fail_din: |
151 | return err; | 153 | return err; |
152 | } | 154 | } |
155 | EXPORT_SYMBOL(cros_ec_register); | ||
153 | 156 | ||
154 | int cros_ec_remove(struct cros_ec_device *ec_dev) | 157 | int cros_ec_remove(struct cros_ec_device *ec_dev) |
155 | { | 158 | { |
@@ -160,6 +163,7 @@ int cros_ec_remove(struct cros_ec_device *ec_dev) | |||
160 | 163 | ||
161 | return 0; | 164 | return 0; |
162 | } | 165 | } |
166 | EXPORT_SYMBOL(cros_ec_remove); | ||
163 | 167 | ||
164 | #ifdef CONFIG_PM_SLEEP | 168 | #ifdef CONFIG_PM_SLEEP |
165 | int cros_ec_suspend(struct cros_ec_device *ec_dev) | 169 | int cros_ec_suspend(struct cros_ec_device *ec_dev) |
@@ -174,6 +178,7 @@ int cros_ec_suspend(struct cros_ec_device *ec_dev) | |||
174 | 178 | ||
175 | return 0; | 179 | return 0; |
176 | } | 180 | } |
181 | EXPORT_SYMBOL(cros_ec_suspend); | ||
177 | 182 | ||
178 | int cros_ec_resume(struct cros_ec_device *ec_dev) | 183 | int cros_ec_resume(struct cros_ec_device *ec_dev) |
179 | { | 184 | { |
@@ -186,4 +191,6 @@ int cros_ec_resume(struct cros_ec_device *ec_dev) | |||
186 | 191 | ||
187 | return 0; | 192 | return 0; |
188 | } | 193 | } |
194 | EXPORT_SYMBOL(cros_ec_resume); | ||
195 | |||
189 | #endif | 196 | #endif |