Skip to contentSkip to conversation

platform/x86: pcengines-apuv2: Drop platform:pcengines-apuv2 module-alias

PATCH In review Hans de Goede 1 participant 2 messages Mar 13, 2023 – Mar 16, 2023

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

PATCH 1/1 platform/x86: pcengines-apuv2: Drop platform:pcengines-apuv2 module-alias

The driver auto-loads based on the DMI modaliases and this platform modalias is not necessary and broken:

1. Not necessary since the driver itself creates the platform_device, so it is already loaded when the modalias might be used
2. From a quick scan of the code it does not create any platform-devices called "platform:pcengines-apuv2"

---
 drivers/platform/x86/pcengines-apuv2.c | 1 -
 1 file changed, 1 deletion(-)
drivers/platform/x86/pcengines-apuv2.c +0 -1
index d063d91db9bc..3aa63b18a2e1 100644
@@ -291,5 +291,4 @@ MODULE_AUTHOR("Enrico Weigelt, metux IT consult <[email protected]>");
 MODULE_DESCRIPTION("PC Engines APUv2/APUv3 board GPIO/LEDs/keys driver");
 MODULE_LICENSE("GPL");
 MODULE_DEVICE_TABLE(dmi, apu_gpio_dmi_table);
-MODULE_ALIAS("platform:pcengines-apuv2");
 MODULE_SOFTDEP("pre: platform:" AMD_FCH_GPIO_DRIVER_NAME " platform:leds-gpio platform:gpio_keys_polled");
Signature · 1 line
2.39.1
#1 lore raw

Hi,

Quoted 9 lines · Hans de Goede

The driver auto-loads based on the DMI modaliases and this platform modalias is not necessary and broken:

1. Not necessary since the driver itself creates the platform_device, so it is already loaded when the modalias might be used
2. From a quick scan of the code it does not create any platform-devices called "platform:pcengines-apuv2"

I've added this to my review-hans (soon to be for-next) branch now.

Regards,

Hans

Quoted 14 lines
---
 drivers/platform/x86/pcengines-apuv2.c | 1 -
 1 file changed, 1 deletion(-)
drivers/platform/x86/pcengines-apuv2.c +0 -1
index d063d91db9bc..3aa63b18a2e1 100644
@@ -291,5 +291,4 @@ MODULE_AUTHOR("Enrico Weigelt, metux IT consult <[email protected]>");
 MODULE_DESCRIPTION("PC Engines APUv2/APUv3 board GPIO/LEDs/keys driver");
 MODULE_LICENSE("GPL");
 MODULE_DEVICE_TABLE(dmi, apu_gpio_dmi_table);
-MODULE_ALIAS("platform:pcengines-apuv2");
 MODULE_SOFTDEP("pre: platform:" AMD_FCH_GPIO_DRIVER_NAME " platform:leds-gpio platform:gpio_keys_polled");