From: Andrew Morton Put the connector exports at the functions so people can see them in context. Cc: Evgeniy Polyakov Cc: Greg KH Signed-off-by: Andrew Morton --- drivers/connector/connector.c | 7 +++---- drivers/w1/Kconfig | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff -puN drivers/connector/connector.c~connector-exports drivers/connector/connector.c --- devel/drivers/connector/connector.c~connector-exports 2006-04-05 21:27:45.000000000 -0700 +++ devel-akpm/drivers/connector/connector.c 2006-04-05 21:27:45.000000000 -0700 @@ -121,6 +121,7 @@ nlmsg_failure: kfree_skb(skb); return -EINVAL; } +EXPORT_SYMBOL_GPL(cn_netlink_send); /* * Callback helper - queues work and setup destructor for given data. @@ -316,6 +317,7 @@ int cn_add_callback(struct cb_id *id, ch return 0; } +EXPORT_SYMBOL_GPL(cn_add_callback); /* * Callback remove routing - removes callback @@ -332,6 +334,7 @@ void cn_del_callback(struct cb_id *id) cn_queue_del_callback(dev->cbdev, id); cn_notify(id, 1); } +EXPORT_SYMBOL_GPL(cn_del_callback); /* * Checks two connector's control messages to be the same. @@ -484,7 +487,3 @@ static void __exit cn_fini(void) module_init(cn_init); module_exit(cn_fini); - -EXPORT_SYMBOL_GPL(cn_add_callback); -EXPORT_SYMBOL_GPL(cn_del_callback); -EXPORT_SYMBOL_GPL(cn_netlink_send); diff -puN drivers/w1/Kconfig~connector-exports drivers/w1/Kconfig --- devel/drivers/w1/Kconfig~connector-exports 2006-04-05 21:27:45.000000000 -0700 +++ devel-akpm/drivers/w1/Kconfig 2006-04-05 21:27:45.000000000 -0700 @@ -2,6 +2,7 @@ menu "Dallas's 1-wire bus" config W1 tristate "Dallas's 1-wire support" + depends on CONNECTOR ---help--- Dallas' 1-wire bus is useful to connect slow 1-pin devices such as iButtons and thermal sensors. _