Commit 1b55d73c authored by Philippe Gerum's avatar Philippe Gerum
Browse files

net: wire up corectl interface

A bug in some Makefile rule caused the corectl support to be wrongly
omitted from the object list for building rtnet.ko. As a consequence
of this, there is no way the smokey-based RTnet testsuite could have
ever worked.

Wire up the corectl handler to the Cobalt core as expected.
parent b48bc137
ccflags-y += -Idrivers/xenomai/net/stack/include -Ikernel/
obj-y += corectl.o
obj-$(CONFIG_XENO_DRIVERS_NET_RTIPV4) += ipv4/
obj-$(CONFIG_XENO_DRIVERS_NET_RTPACKET) += packet/
......@@ -13,6 +11,7 @@ obj-$(CONFIG_XENO_DRIVERS_NET_RTCFG) += rtcfg/
obj-$(CONFIG_XENO_DRIVERS_NET) += rtnet.o
rtnet-y := \
corectl.o \
iovec.o \
rtdev.o \
rtdev_mgr.o \
......
......@@ -66,9 +66,12 @@ static struct notifier_block rtnet_corectl_notifier = {
.notifier_call = rtnet_corectl_call,
};
static int rtnet_corectl_register(void)
void rtnet_corectl_register(void)
{
cobalt_add_config_chain(&rtnet_corectl_notifier);
return 0;
}
device_initcall(rtnet_corectl_register);
void rtnet_corectl_unregister(void)
{
cobalt_remove_config_chain(&rtnet_corectl_notifier);
}
......@@ -50,6 +50,8 @@ const char rtnet_rtdm_provider_name[] =
EXPORT_SYMBOL_GPL(rtnet_rtdm_provider_name);
void rtnet_corectl_register(void);
void rtnet_corectl_unregister(void);
#ifdef CONFIG_XENO_OPT_VFILE
/***
......@@ -345,6 +347,8 @@ int __init rtnet_init(void)
if ((err = rtpc_init()) != 0)
goto err_out6;
rtnet_corectl_register();
return 0;
......@@ -376,6 +380,8 @@ err_out1:
*/
void __exit rtnet_release(void)
{
rtnet_corectl_unregister();
rtpc_cleanup();
rtwlan_exit();
......
Supports Markdown
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