Commit a17155bc authored by Guenter Roeck's avatar Guenter Roeck Committed by Samuel Ortiz

mfd: vexpress: Export global functions to fix build error

Compiling vexpress client drivers as module results in error messages such as

ERROR: "__vexpress_config_func_get" [drivers/hwmon/vexpress.ko] undefined!
ERROR: "vexpress_config_func_put" [drivers/hwmon/vexpress.ko] undefined!

This is because the global functions in drivers/mfd/vexpress-config.c are not
exported. Fix it.
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 9270bdf5
...@@ -67,6 +67,7 @@ struct vexpress_config_bridge *vexpress_config_bridge_register( ...@@ -67,6 +67,7 @@ struct vexpress_config_bridge *vexpress_config_bridge_register(
return bridge; return bridge;
} }
EXPORT_SYMBOL(vexpress_config_bridge_register);
void vexpress_config_bridge_unregister(struct vexpress_config_bridge *bridge) void vexpress_config_bridge_unregister(struct vexpress_config_bridge *bridge)
{ {
...@@ -83,6 +84,7 @@ void vexpress_config_bridge_unregister(struct vexpress_config_bridge *bridge) ...@@ -83,6 +84,7 @@ void vexpress_config_bridge_unregister(struct vexpress_config_bridge *bridge)
while (!list_empty(&__bridge.transactions)) while (!list_empty(&__bridge.transactions))
cpu_relax(); cpu_relax();
} }
EXPORT_SYMBOL(vexpress_config_bridge_unregister);
struct vexpress_config_func { struct vexpress_config_func {
...@@ -142,6 +144,7 @@ struct vexpress_config_func *__vexpress_config_func_get(struct device *dev, ...@@ -142,6 +144,7 @@ struct vexpress_config_func *__vexpress_config_func_get(struct device *dev,
return func; return func;
} }
EXPORT_SYMBOL(__vexpress_config_func_get);
void vexpress_config_func_put(struct vexpress_config_func *func) void vexpress_config_func_put(struct vexpress_config_func *func)
{ {
...@@ -149,7 +152,7 @@ void vexpress_config_func_put(struct vexpress_config_func *func) ...@@ -149,7 +152,7 @@ void vexpress_config_func_put(struct vexpress_config_func *func)
of_node_put(func->bridge->node); of_node_put(func->bridge->node);
kfree(func); kfree(func);
} }
EXPORT_SYMBOL(vexpress_config_func_put);
struct vexpress_config_trans { struct vexpress_config_trans {
struct vexpress_config_func *func; struct vexpress_config_func *func;
...@@ -229,6 +232,7 @@ void vexpress_config_complete(struct vexpress_config_bridge *bridge, ...@@ -229,6 +232,7 @@ void vexpress_config_complete(struct vexpress_config_bridge *bridge,
complete(&trans->completion); complete(&trans->completion);
} }
EXPORT_SYMBOL(vexpress_config_complete);
int vexpress_config_wait(struct vexpress_config_trans *trans) int vexpress_config_wait(struct vexpress_config_trans *trans)
{ {
...@@ -236,7 +240,7 @@ int vexpress_config_wait(struct vexpress_config_trans *trans) ...@@ -236,7 +240,7 @@ int vexpress_config_wait(struct vexpress_config_trans *trans)
return trans->status; return trans->status;
} }
EXPORT_SYMBOL(vexpress_config_wait);
int vexpress_config_read(struct vexpress_config_func *func, int offset, int vexpress_config_read(struct vexpress_config_func *func, int offset,
u32 *data) u32 *data)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment