net/ti: add MODULE_DEVICE_TABLE + MODULE_LICENSE
authorSebastian Siewior <bigeasy@linutronix.de>
Wed, 24 Apr 2013 08:48:22 +0000 (08:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Apr 2013 08:12:29 +0000 (04:12 -0400)
If compiled as modules each one of these modules is missing something.
With this patch the modules are loaded on demand and don't taint the
kernel due to license issues.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/davinci_cpdma.c
drivers/net/ethernet/ti/davinci_mdio.c

index a066c41beac74b6e3302fe2e014264b097eeeda2..d9f5e74cdcfc1bacdf96d7cbe621f567624162ba 100644 (file)
@@ -1970,6 +1970,7 @@ static const struct of_device_id cpsw_of_mtable[] = {
        { .compatible = "ti,cpsw", },
        { /* sentinel */ },
 };
+MODULE_DEVICE_TABLE(of, cpsw_of_mtable);
 
 static struct platform_driver cpsw_driver = {
        .driver = {
index 6b0a89f6f6a59384355dbe3a8efbd8f2589c3098..49dfd592ac1ecd4e0a86d8d5ad01572a97e5c346 100644 (file)
@@ -1040,3 +1040,5 @@ unlock_ret:
        return ret;
 }
 EXPORT_SYMBOL_GPL(cpdma_control_set);
+
+MODULE_LICENSE("GPL");
index d04a622b08d4f798ee12f30ab1cd35ecead2701b..12aec173564ca6fdc6b6e15ab8a8dcc0c293c9a4 100644 (file)
@@ -485,6 +485,7 @@ static const struct of_device_id davinci_mdio_of_mtable[] = {
        { .compatible = "ti,davinci_mdio", },
        { /* sentinel */ },
 };
+MODULE_DEVICE_TABLE(of, davinci_mdio_of_mtable);
 
 static struct platform_driver davinci_mdio_driver = {
        .driver = {