Skip to contentSkip to conversation

usb: dwc2: Remove obsolete MODULE_ constants from platform.c

PATCH In review Matthijs Kooijman 2 participants 2 messages May 3, 2021 – May 4, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: dwc2: Remove obsolete MODULE_ constants from platform.c

Originally, the core and platform drivers were separate modules, so each had its own module info. Since commit 2d1165a4b95e (usb: dwc2: remove dwc2_platform.ko) platform.c is included in the core module, which now contains duplicate module info (from core.c and platform.c).

Due to the linking order and modinfo implementation, running modinfo on the resulting dwc2.ko shows just the info from platform.c, rather than that from core.c, suggesting that I am the author of the entire dwc2 module. Since platform.c is just a minor part of the entire module, this removes its module info in favor of the info from core.c.

---
 drivers/usb/dwc2/platform.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/usb/dwc2/platform.c +0 -4
index 5f18acac7406..e1e1e32e0008 100644
@@ -742,7 +742,3 @@ static struct platform_driver dwc2_platform_driver = {
 };
 
 module_platform_driver(dwc2_platform_driver);
-
-MODULE_DESCRIPTION("DESIGNWARE HS OTG Platform Glue");
-MODULE_AUTHOR("Matthijs Kooijman <[email protected]>");
-MODULE_LICENSE("Dual BSD/GPL");
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Matthijs Kooijman

Originally, the core and platform drivers were separate modules, so each had its own module info. Since commit 2d1165a4b95e (usb: dwc2: remove dwc2_platform.ko) platform.c is included in the core module, which now contains duplicate module info (from core.c and platform.c).

Quoted 7 lines

Due to the linking order and modinfo implementation, running modinfo on the resulting dwc2.ko shows just the info from platform.c, rather than that from core.c, suggesting that I am the author of the entire dwc2 module. Since platform.c is just a minor part of the entire module, this removes its module info in favor of the info from core.c.

Quoted 17 lines
---
  drivers/usb/dwc2/platform.c | 4 ----
  1 file changed, 4 deletions(-)
drivers/usb/dwc2/platform.c +0 -4
index 5f18acac7406..e1e1e32e0008 100644
@@ -742,7 +742,3 @@ static struct platform_driver dwc2_platform_driver = {
  };
 
  module_platform_driver(dwc2_platform_driver);
-
-MODULE_DESCRIPTION("DESIGNWARE HS OTG Platform Glue");
-MODULE_AUTHOR("Matthijs Kooijman <[email protected]>");
-MODULE_LICENSE("Dual BSD/GPL");