Skip to content

Commit

Permalink
dsa: Export functions from core to modules
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Hutchings <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
bwhacks authored and davem330 committed Nov 26, 2011
1 parent cf50dcc commit ad293b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/dsa/dsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ void register_switch_driver(struct dsa_switch_driver *drv)
list_add_tail(&drv->list, &dsa_switch_drivers);
mutex_unlock(&dsa_switch_drivers_mutex);
}
EXPORT_SYMBOL_GPL(register_switch_driver);

void unregister_switch_driver(struct dsa_switch_driver *drv)
{
mutex_lock(&dsa_switch_drivers_mutex);
list_del_init(&drv->list);
mutex_unlock(&dsa_switch_drivers_mutex);
}
EXPORT_SYMBOL_GPL(unregister_switch_driver);

static struct dsa_switch_driver *
dsa_switch_probe(struct mii_bus *bus, int sw_addr, char **_name)
Expand Down
2 changes: 2 additions & 0 deletions net/dsa/slave.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ void dsa_slave_mii_bus_init(struct dsa_switch *ds)
ds->master_mii_bus->id, ds->pd->sw_addr);
ds->slave_mii_bus->parent = &ds->master_mii_bus->dev;
}
EXPORT_SYMBOL_GPL(dsa_slave_mii_bus_init);


/* slave device handling ****************************************************/
Expand Down Expand Up @@ -402,3 +403,4 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent,

return slave_dev;
}
EXPORT_SYMBOL_GPL(dsa_slave_create);

0 comments on commit ad293b8

Please sign in to comment.