Skip to contentSkip to conversation

mtd: drop unused module aliases

PATCH Applied Johan Hovold 2 participants 10 messages Sep 22, 2025 – Sep 29, 2025

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

cover mtd: drop unused module aliases

When fixing a device leak in the omap2 rawnand driver I noticed it had a no longer used platform module alias.

This series drops unused module aliases from mtd drivers that never supported anything but OF probing or that no longer do.

Johan

Johan Hovold (8):
mtd: hyperbus: hbmc-am654: drop unused module alias
mtd: onenand: omap2: drop unused module alias
mtd: rawnand: atmel: drop unused module alias
mtd: rawnand: omap2: drop unused module alias
mtd: rawnand: pl353: drop unused module alias
mtd: rawnand: rockchip: drop unused module alias
mtd: rawnand: stm32_fmc2: drop unused module alias
mtd: rawnand: sunxi: drop unused module alias

 drivers/mtd/hyperbus/hbmc-am654.c               | 1 -
 drivers/mtd/nand/onenand/onenand_omap2.c        | 1 -
 drivers/mtd/nand/raw/atmel/pmecc.c              | 1 -
 drivers/mtd/nand/raw/omap2.c                    | 1 -
 drivers/mtd/nand/raw/pl35x-nand-controller.c    | 1 -
 drivers/mtd/nand/raw/rockchip-nand-controller.c | 1 -
 drivers/mtd/nand/raw/stm32_fmc2_nand.c          | 1 -
 drivers/mtd/nand/raw/sunxi_nand.c               | 1 -
 8 files changed, 8 deletions(-)
Signature · 1 line
2.49.1
#1 lore raw

PATCH 1/8 mtd: hyperbus: hbmc-am654: drop unused module alias

The driver has never supported anything but OF probing so drop the unused platform module alias.

---
 drivers/mtd/hyperbus/hbmc-am654.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/hyperbus/hbmc-am654.c +0 -1
index 82a1e7b7e4d8..9d31464046b2 100644
@@ -272,5 +272,4 @@ module_platform_driver(am654_hbmc_platform_driver);
 
 MODULE_DESCRIPTION("HBMC driver for AM654 SoC");
 MODULE_LICENSE("GPL v2");
-MODULE_ALIAS("platform:hbmc-am654");
 MODULE_AUTHOR("Vignesh Raghavendra <[email protected]>");
Signature · 1 line
2.49.1
#2 lore raw

PATCH 2/8 mtd: onenand: omap2: drop unused module alias

In reply to Johan Hovold

The driver only supports OF probing since commit a758f50f10cf ("mtd:
onenand: omap2: Configure driver from DT") so drop the unused platform module alias.

---
 drivers/mtd/nand/onenand/onenand_omap2.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/onenand/onenand_omap2.c +0 -1
index f9a386b69050..0793251ada3b 100644
@@ -603,7 +603,6 @@ static struct platform_driver omap2_onenand_driver = {
 
 module_platform_driver(omap2_onenand_driver);
 
-MODULE_ALIAS("platform:" DRIVER_NAME);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Jarkko Lavinen <[email protected]>");
 MODULE_DESCRIPTION("Glue layer for OneNAND flash on OMAP2 / OMAP3");
Signature · 1 line
2.49.1
#3 lore raw

PATCH 3/8 mtd: rawnand: atmel: drop unused module alias

In reply to Johan Hovold

The driver only supports OF probing since commit f88fc122cc34 ("mtd:
nand: Cleanup/rework the atmel_nand driver") so drop the unused platform module alias.

---
 drivers/mtd/nand/raw/atmel/pmecc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/raw/atmel/pmecc.c +0 -1
index 0b402823b619..1d0e93e4edb1 100644
@@ -1010,4 +1010,3 @@ module_platform_driver(atmel_pmecc_driver);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Boris Brezillon <[email protected]>");
 MODULE_DESCRIPTION("PMECC engine driver");
-MODULE_ALIAS("platform:atmel_pmecc");
Signature · 1 line
2.49.1
#4 lore raw

PATCH 4/8 mtd: rawnand: omap2: drop unused module alias

In reply to Johan Hovold

The driver only supports OF probing since commit 086c321ec57b ("mtd:
nand: omap2: Remove omap_nand_platform_data") so drop the unused platform module alias.

---
 drivers/mtd/nand/raw/omap2.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/raw/omap2.c +0 -1
index 61fd98ad5c78..39e297486721 100644
@@ -2332,6 +2332,5 @@ static struct platform_driver omap_nand_driver = {
 
 module_platform_driver(omap_nand_driver);
 
-MODULE_ALIAS("platform:" DRIVER_NAME);
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("Glue layer for NAND flash on TI OMAP boards");
Signature · 1 line
2.49.1
#5 lore raw

PATCH 5/8 mtd: rawnand: pl353: drop unused module alias

In reply to Johan Hovold

The driver has never supported anything but OF probing so drop the unused platform module alias.

---
 drivers/mtd/nand/raw/pl35x-nand-controller.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/raw/pl35x-nand-controller.c +0 -1
index 09440ed4652e..a7dc45c7f214 100644
@@ -1193,6 +1193,5 @@ static struct platform_driver pl35x_nandc_driver = {
 module_platform_driver(pl35x_nandc_driver);
 
 MODULE_AUTHOR("Xilinx, Inc.");
-MODULE_ALIAS("platform:" PL35X_NANDC_DRIVER_NAME);
 MODULE_DESCRIPTION("ARM PL35X NAND controller driver");
 MODULE_LICENSE("GPL");
Signature · 1 line
2.49.1
#6 lore raw

PATCH 6/8 mtd: rawnand: rockchip: drop unused module alias

In reply to Johan Hovold

The driver has never supported anything but OF probing so drop the unused platform module alias.

---
 drivers/mtd/nand/raw/rockchip-nand-controller.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/raw/rockchip-nand-controller.c +0 -1
index c5d7cd8a6cab..9444ba02696d 100644
@@ -1505,4 +1505,3 @@ module_platform_driver(rk_nfc_driver);
 MODULE_LICENSE("Dual MIT/GPL");
 MODULE_AUTHOR("Yifeng Zhao <[email protected]>");
 MODULE_DESCRIPTION("Rockchip Nand Flash Controller Driver");
-MODULE_ALIAS("platform:rockchip-nand-controller");
Signature · 1 line
2.49.1
#7 lore raw

PATCH 7/8 mtd: rawnand: stm32_fmc2: drop unused module alias

In reply to Johan Hovold

The driver has never supported anything but OF probing so drop the unused platform module alias.

---
 drivers/mtd/nand/raw/stm32_fmc2_nand.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/raw/stm32_fmc2_nand.c +0 -1
index d957327fb4fa..c08d6b176372 100644
@@ -2158,7 +2158,6 @@ static struct platform_driver stm32_fmc2_nfc_driver = {
 };
 module_platform_driver(stm32_fmc2_nfc_driver);
 
-MODULE_ALIAS("platform:stm32_fmc2_nfc");
 MODULE_AUTHOR("Christophe Kerello <[email protected]>");
 MODULE_DESCRIPTION("STMicroelectronics STM32 FMC2 NFC driver");
 MODULE_LICENSE("GPL v2");
Signature · 1 line
2.49.1
#8 lore raw

PATCH 8/8 mtd: rawnand: sunxi: drop unused module alias

In reply to Johan Hovold

The driver has never supported anything but OF probing so drop the unused platform module alias.

---
 drivers/mtd/nand/raw/sunxi_nand.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/raw/sunxi_nand.c +0 -1
index 162cd5f4f234..f6a8e8ae819d 100644
@@ -2205,4 +2205,3 @@ module_platform_driver(sunxi_nfc_driver);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Boris BREZILLON");
 MODULE_DESCRIPTION("Allwinner NAND Flash Controller driver");
-MODULE_ALIAS("platform:sunxi_nand");
Signature · 1 line
2.49.1
maintainer Applied
#9 lore raw
In reply to Johan Hovold
Quoted 9 lines · Johan Hovold

When fixing a device leak in the omap2 rawnand driver I noticed it had a no longer used platform module alias.

This series drops unused module aliases from mtd drivers that never supported anything but OF probing or that no longer do.

Johan

[...]

Applied to mtd/next, thanks!

[1/8] mtd: hyperbus: hbmc-am654: drop unused module alias

      commit: 192f981c14bfad4241446544cf0d27b9fa11a7bd
[2/8] mtd: onenand: omap2: drop unused module alias
      commit: cc74c3f8e4bc01ecf9849a2b22706ba96a29f749
[3/8] mtd: rawnand: atmel: drop unused module alias
      commit: 7a3f3c5bdecfe3cf6cdd35073c2729a46894a34d
[4/8] mtd: rawnand: omap2: drop unused module alias
      commit: b1a5c6de97b4c861c1ad1e7ad3818ebd32be190e
[5/8] mtd: rawnand: pl353: drop unused module alias
      commit: 1f7005d382f567b25cfb96d9f201f5448cf67f9a
[6/8] mtd: rawnand: rockchip: drop unused module alias
      commit: 61163e7373f678c453a4505865e0f8b27e506de8
[7/8] mtd: rawnand: stm32_fmc2: drop unused module alias
      commit: 2f05c108664056f91e5f9171169c685f517ac568
[8/8] mtd: rawnand: sunxi: drop unused module alias
      commit: 362f84c89e136539b8c3edb47f42fb06ce37bacf

Patche(s) should be available on mtd/linux.git and will be part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl