diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2011-11-25 09:34:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-26 14:48:14 -0500 |
commit | ad293b8a218ca13a9ee3e3c98137fa301987577c (patch) | |
tree | f05bfc1ca03a26d41090824ef813ee96a6c5e9fe /net/dsa | |
parent | cf50dcc24f82a6dc2bce523eec2a979eb1b106e2 (diff) |
dsa: Export functions from core to modules
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/dsa.c | 2 | ||||
-rw-r--r-- | net/dsa/slave.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c index 66f5c0460cd3..fc93088cdc90 100644 --- a/net/dsa/dsa.c +++ b/net/dsa/dsa.c | |||
@@ -29,6 +29,7 @@ void register_switch_driver(struct dsa_switch_driver *drv) | |||
29 | list_add_tail(&drv->list, &dsa_switch_drivers); | 29 | list_add_tail(&drv->list, &dsa_switch_drivers); |
30 | mutex_unlock(&dsa_switch_drivers_mutex); | 30 | mutex_unlock(&dsa_switch_drivers_mutex); |
31 | } | 31 | } |
32 | EXPORT_SYMBOL_GPL(register_switch_driver); | ||
32 | 33 | ||
33 | void unregister_switch_driver(struct dsa_switch_driver *drv) | 34 | void unregister_switch_driver(struct dsa_switch_driver *drv) |
34 | { | 35 | { |
@@ -36,6 +37,7 @@ void unregister_switch_driver(struct dsa_switch_driver *drv) | |||
36 | list_del_init(&drv->list); | 37 | list_del_init(&drv->list); |
37 | mutex_unlock(&dsa_switch_drivers_mutex); | 38 | mutex_unlock(&dsa_switch_drivers_mutex); |
38 | } | 39 | } |
40 | EXPORT_SYMBOL_GPL(unregister_switch_driver); | ||
39 | 41 | ||
40 | static struct dsa_switch_driver * | 42 | static struct dsa_switch_driver * |
41 | dsa_switch_probe(struct mii_bus *bus, int sw_addr, char **_name) | 43 | dsa_switch_probe(struct mii_bus *bus, int sw_addr, char **_name) |
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 56cf9b8e1c7c..c9d52ca2184d 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
@@ -45,6 +45,7 @@ void dsa_slave_mii_bus_init(struct dsa_switch *ds) | |||
45 | ds->master_mii_bus->id, ds->pd->sw_addr); | 45 | ds->master_mii_bus->id, ds->pd->sw_addr); |
46 | ds->slave_mii_bus->parent = &ds->master_mii_bus->dev; | 46 | ds->slave_mii_bus->parent = &ds->master_mii_bus->dev; |
47 | } | 47 | } |
48 | EXPORT_SYMBOL_GPL(dsa_slave_mii_bus_init); | ||
48 | 49 | ||
49 | 50 | ||
50 | /* slave device handling ****************************************************/ | 51 | /* slave device handling ****************************************************/ |
@@ -402,3 +403,4 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent, | |||
402 | 403 | ||
403 | return slave_dev; | 404 | return slave_dev; |
404 | } | 405 | } |
406 | EXPORT_SYMBOL_GPL(dsa_slave_create); | ||