net-snk: Remove insmod/rmmod

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Benjamin Herrenschmidt 2014-07-15 10:26:59 +10:00 committed by Nikunj A Dadhania
parent 34729a27ec
commit a7a11bcf51
2 changed files with 0 additions and 32 deletions

View File

@ -80,33 +80,3 @@ get_module_by_type(int type) {
}
return 0;
}
/**
* insmod_by_type - Load first module of given type
*
* @param type Type of module that we want to load
* @return module descriptor on success
* NULL if not successful
*/
snk_module_t *
insmod_by_type(int type) {
return 0;
}
/**
* rmmod_by_type - Remove all module of given type
*
* @param type Type of module that we want to load
*/
void
rmmod_by_type(int type) {
int i;
for (i = 0; i < MODULES_MAX; ++i) {
if (snk_modules[i] && snk_modules[i]->type == type) {
if (snk_modules[i]->running)
snk_modules[i]->term();
snk_modules[i] = 0;
}
}
}

View File

@ -12,6 +12,4 @@
extern void modules_init(void);
extern void modules_term(void);
extern snk_module_t *insmod_by_type(int);
extern void rmmod_by_type(int);
extern snk_module_t *get_module_by_type(int type);