net/ti: add MODULE_DEVICE_TABLE + MODULE_LICENSE
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>
This commit is contained in:
parent
b4727e69b8
commit
4bc21d4162
|
@ -1970,6 +1970,7 @@ static const struct of_device_id cpsw_of_mtable[] = {
|
||||||
{ .compatible = "ti,cpsw", },
|
{ .compatible = "ti,cpsw", },
|
||||||
{ /* sentinel */ },
|
{ /* sentinel */ },
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, cpsw_of_mtable);
|
||||||
|
|
||||||
static struct platform_driver cpsw_driver = {
|
static struct platform_driver cpsw_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
|
|
|
@ -1040,3 +1040,5 @@ unlock_ret:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(cpdma_control_set);
|
EXPORT_SYMBOL_GPL(cpdma_control_set);
|
||||||
|
|
||||||
|
MODULE_LICENSE("GPL");
|
||||||
|
|
|
@ -485,6 +485,7 @@ static const struct of_device_id davinci_mdio_of_mtable[] = {
|
||||||
{ .compatible = "ti,davinci_mdio", },
|
{ .compatible = "ti,davinci_mdio", },
|
||||||
{ /* sentinel */ },
|
{ /* sentinel */ },
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, davinci_mdio_of_mtable);
|
||||||
|
|
||||||
static struct platform_driver davinci_mdio_driver = {
|
static struct platform_driver davinci_mdio_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
|
|
Loading…
Reference in a new issue