Skip to content

Commit

Permalink
net: phy: cortina: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
Browse files Browse the repository at this point in the history
This change resolves a new compile-time warning
when built as a loadable module:

WARNING: modpost: missing MODULE_LICENSE() in drivers/net/phy/cortina.o
see include/linux/module.h for more information

This adds the license as "GPL", which matches the header of the file.

MODULE_DESCRIPTION and MODULE_AUTHOR are also added.

Signed-off-by: Jesse Chan <jc@linux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jesse Chan authored and David S. Miller committed Nov 23, 2017
1 parent 0c86a6b commit 0cc0350
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/phy/cortina.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,7 @@ static struct mdio_device_id __maybe_unused cortina_tbl[] = {
};

MODULE_DEVICE_TABLE(mdio, cortina_tbl);

MODULE_DESCRIPTION("Cortina EDC CDR 10G Ethernet PHY driver");
MODULE_AUTHOR("NXP");
MODULE_LICENSE("GPL");

0 comments on commit 0cc0350

Please sign in to comment.