iio: Remove MODULE_ALIAS from men_z188_adc
v2 cover iio: Remove MODULE_ALIAS from men_z188_adc
The first patches I sent for fixing the autoload problem encountered on mcb device drivers were 2. The first [1] was focused on updating the modpost process for letting kbuild to access to the data within MODULE_DEVICE_TABLE and the second one [2] for removing the MODULE_ALIAS on all mcb client drivers.
They were rejected and Andy suggested me to split the second patch in a per-driver basis instead of sending all drivers' changes in a single patch once the first patch was merged.
The first patch is already merged on Linus's Git repository for 6.19-rc4
commit 1f4ea4838b13 ("mcb: Add missing modpost build support")
So now I am sending this patch for removing MODULE_ALIAS on the mcb driver in this subsystem as it is no longer required. This cleanup is being sent to each affected subsystem separately, as per the review suggestion to ease the handling for maintainers.
[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/
changes in v2:
- Renane commit message
Jose Javier Rodriguez Barbarin (1):
iio: adc: men_z188_adc: drop unneeded MODULE_ALIAS
drivers/iio/adc/men_z188_adc.c | 1 - 1 file changed, 1 deletion(-)
Signature · 1 line
2.52.0
PATCH v2 1/1 iio: adc: men_z188_adc: drop unneeded MODULE_ALIAS
Since commit 1f4ea4838b13 ("mcb: Add missing modpost build support") the MODULE_ALIAS() is redundant as the module alias is now automatically generated from the MODULE_DEVICE_TABLE().
Remove the explicit alias.
No functional change intended.
--- drivers/iio/adc/men_z188_adc.c | 1 - 1 file changed, 1 deletion(-)
drivers/iio/adc/men_z188_adc.c +0 -1
@@ -171,5 +171,4 @@ module_mcb_driver(men_z188_driver);MODULE_AUTHOR ("Johannes Thumshirn <[email protected]>" );MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("IIO ADC driver for MEN 16z188 ADC Core" ); -MODULE_ALIAS ("mcb:16z188" );MODULE_IMPORT_NS ("MCB" );
Signature · 1 line
2.52.0
Re: [PATCH v2 1/1] iio: adc: men_z188_adc: drop unneeded MODULE_ALIAS
Quoted 10 lines · On Thu, 8 Jan 2026 14:53:01 +0100 Jose Javier Rodriguez Barbarin…
Since commit
1f4ea4838b13("mcb: Add missing modpost build support") theMODULE_ALIAS()is redundant as the module alias is now automatically generated from theMODULE_DEVICE_TABLE().Remove the explicit alias.
No functional change intended.
Reviewed-by Jorge Sanjuan Garcia <[email protected]>Signed-off-by Jose Javier Rodriguez Barbarin <[email protected]>
Applied. Thanks,
Jonathan
Quoted 14 lines
--- drivers/iio/adc/men_z188_adc.c | 1 - 1 file changed, 1 deletion(-)drivers/iio/adc/men_z188_adc.c +0
-1@@ -171,5 +171,4 @@ module_mcb_driver(men_z188_driver);MODULE_AUTHOR ("Johannes Thumshirn <[email protected]>" );MODULE_LICENSE ("GPL" );MODULE_DESCRIPTION ("IIO ADC driver for MEN 16z188 ADC Core" ); -MODULE_ALIAS ("mcb:16z188" );MODULE_IMPORT_NS ("MCB" );