dsa: Export functions from core to modules
authorBen Hutchings <ben@decadent.org.uk>
Fri, 25 Nov 2011 14:34:07 +0000 (14:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Nov 2011 19:48:14 +0000 (14:48 -0500)
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c
net/dsa/slave.c

index 66f5c0460cd358c877c3c276b08cbd5609383693..fc93088cdc9019dc814269c9fdbfe7e03f85d384 100644 (file)
@@ -29,6 +29,7 @@ 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)
 {
@@ -36,6 +37,7 @@ void unregister_switch_driver(struct dsa_switch_driver *drv)
        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)
index 56cf9b8e1c7cd46ce0a6250cdff41dfbc41728d7..c9d52ca2184d5d103685de6078cb17a7e60a612d 100644 (file)
@@ -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 ****************************************************/
@@ -402,3 +403,4 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent,
 
        return slave_dev;
 }
+EXPORT_SYMBOL_GPL(dsa_slave_create);