Skip to contentSkip to conversation

drivers: gpio: remove unneeded MODULE_VERSION() usage

PATCH In review Enrico Weigelt, metux IT consult 2 participants 2 messages Dec 12, 2019

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

PATCH 1/1 drivers: gpio: remove unneeded MODULE_VERSION() usage

Remove MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.

---
 drivers/gpio/gpio-sama5d2-piobu.c | 1 -
 drivers/gpio/gpio-tb10x.c         | 1 -
 2 files changed, 2 deletions(-)
drivers/gpio/gpio-sama5d2-piobu.c +0 -1
index b04c561f3280..4d47b2c41186 100644
@@ -244,7 +244,6 @@ static struct platform_driver sama5d2_piobu_driver = {
 
 module_platform_driver(sama5d2_piobu_driver);
 
-MODULE_VERSION("1.0");
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("SAMA5D2 PIOBU controller driver");
 MODULE_AUTHOR("Andrei Stefanescu <[email protected]>");
drivers/gpio/gpio-tb10x.c +0 -1
index 5e375186f90e..866201cf5f65 100644
@@ -243,4 +243,3 @@ static struct platform_driver tb10x_gpio_driver = {
 module_platform_driver(tb10x_gpio_driver);
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("tb10x gpio.");
-MODULE_VERSION("0.0.1");
Signature · 1 line
2.11.0
#1 lore raw

czw., 12 gru 2019 o 14:33 Enrico Weigelt, metux IT consult <[email protected]> napisał(a):

Quoted 32 lines

Remove MODULE_VERSION(), as it isn't needed at all: the only version making sense is the kernel version.

---
 drivers/gpio/gpio-sama5d2-piobu.c | 1 -
 drivers/gpio/gpio-tb10x.c         | 1 -
 2 files changed, 2 deletions(-)
drivers/gpio/gpio-sama5d2-piobu.c +0 -1
index b04c561f3280..4d47b2c41186 100644
@@ -244,7 +244,6 @@ static struct platform_driver sama5d2_piobu_driver = {
 
 module_platform_driver(sama5d2_piobu_driver);
 
-MODULE_VERSION("1.0");
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("SAMA5D2 PIOBU controller driver");
 MODULE_AUTHOR("Andrei Stefanescu <[email protected]>");
drivers/gpio/gpio-tb10x.c +0 -2
index 5e375186f90e..866201cf5f65 100644
@@ -243,4 +243,3 @@ static struct platform_driver tb10x_gpio_driver = {
 module_platform_driver(tb10x_gpio_driver);
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("tb10x gpio.");
-MODULE_VERSION("0.0.1");
--
Quoted 2 lines

2.11.0

Patch applied.

Bart