Skip to content

Commit

Permalink
mfd: vexpress: Export global functions to fix build error
Browse files Browse the repository at this point in the history
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: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Guenter Roeck authored and Samuel Ortiz committed Jan 22, 2013
1 parent 9270bdf commit a17155b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/mfd/vexpress-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ struct vexpress_config_bridge *vexpress_config_bridge_register(

return bridge;
}
EXPORT_SYMBOL(vexpress_config_bridge_register);

void vexpress_config_bridge_unregister(struct vexpress_config_bridge *bridge)
{
Expand All @@ -83,6 +84,7 @@ void vexpress_config_bridge_unregister(struct vexpress_config_bridge *bridge)
while (!list_empty(&__bridge.transactions))
cpu_relax();
}
EXPORT_SYMBOL(vexpress_config_bridge_unregister);


struct vexpress_config_func {
Expand Down Expand Up @@ -142,14 +144,15 @@ struct vexpress_config_func *__vexpress_config_func_get(struct device *dev,

return func;
}
EXPORT_SYMBOL(__vexpress_config_func_get);

void vexpress_config_func_put(struct vexpress_config_func *func)
{
func->bridge->info->func_put(func->func);
of_node_put(func->bridge->node);
kfree(func);
}

EXPORT_SYMBOL(vexpress_config_func_put);

struct vexpress_config_trans {
struct vexpress_config_func *func;
Expand Down Expand Up @@ -229,14 +232,15 @@ void vexpress_config_complete(struct vexpress_config_bridge *bridge,

complete(&trans->completion);
}
EXPORT_SYMBOL(vexpress_config_complete);

int vexpress_config_wait(struct vexpress_config_trans *trans)
{
wait_for_completion(&trans->completion);

return trans->status;
}

EXPORT_SYMBOL(vexpress_config_wait);

int vexpress_config_read(struct vexpress_config_func *func, int offset,
u32 *data)
Expand Down

0 comments on commit a17155b

Please sign in to comment.