Skip to content

Commit f16bd7c

Browse files
author
Boris Brezillon
committed
mtd: nand: Kill the MTD_NAND_IDS Kconfig option
MTD_NAND_IDS is selected by MTD_NAND, which makes it useless. Remove the Kconfig option and link nand_ids.o into the nand.o object file. Doing that also prevents creating an extra nand_ids.ko module when MTD_NAND is activated as a module. Since nand_ids.c is no longer compiled as a standalone module and the nand_manuf_ids/nand_flash_ids symbols are only used in nand_base.c, we can get rid of the MODULE_XXX() and EXPORT_SYMBOL() definitions. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
1 parent 8cfb9ab commit f16bd7c

4 files changed

Lines changed: 1 addition & 14 deletions

File tree

‎arch/cris/arch-v32/drivers/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ config ETRAX_NANDFLASH
136136
bool "NAND flash support"
137137
depends on ETRAX_ARCH_V32
138138
select MTD_NAND
139-
select MTD_NAND_IDS
140139
help
141140
This option enables MTD mapping of NAND flash devices. Needed to use
142141
NAND flash memories. If unsure, say Y.

‎drivers/mtd/nand/Kconfig‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ config MTD_NAND_ECC_SMC
1313
menuconfig MTD_NAND
1414
tristate "NAND Device Support"
1515
depends on MTD
16-
select MTD_NAND_IDS
1716
select MTD_NAND_ECC
1817
help
1918
This enables support for accessing all type of NAND flash
@@ -109,9 +108,6 @@ config MTD_NAND_OMAP_BCH
109108
config MTD_NAND_OMAP_BCH_BUILD
110109
def_tristate MTD_NAND_OMAP2 && MTD_NAND_OMAP_BCH
111110

112-
config MTD_NAND_IDS
113-
tristate
114-
115111
config MTD_NAND_RICOH
116112
tristate "Ricoh xD card reader"
117113
default n

‎drivers/mtd/nand/Makefile‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
obj-$(CONFIG_MTD_NAND) += nand.o
66
obj-$(CONFIG_MTD_NAND_ECC) += nand_ecc.o
77
obj-$(CONFIG_MTD_NAND_BCH) += nand_bch.o
8-
obj-$(CONFIG_MTD_NAND_IDS) += nand_ids.o
98
obj-$(CONFIG_MTD_SM_COMMON) += sm_common.o
109

1110
obj-$(CONFIG_MTD_NAND_CAFE) += cafe_nand.o
@@ -61,4 +60,4 @@ obj-$(CONFIG_MTD_NAND_BRCMNAND) += brcmnand/
6160
obj-$(CONFIG_MTD_NAND_QCOM) += qcom_nandc.o
6261
obj-$(CONFIG_MTD_NAND_MTK) += mtk_nand.o mtk_ecc.o
6362

64-
nand-objs := nand_base.o nand_bbt.o nand_timings.o
63+
nand-objs := nand_base.o nand_bbt.o nand_timings.o nand_ids.o

‎drivers/mtd/nand/nand_ids.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,3 @@ struct nand_manufacturer nand_manuf_ids[] = {
188188
{NAND_MFR_WINBOND, "Winbond"},
189189
{0x0, "Unknown"}
190190
};
191-
192-
EXPORT_SYMBOL(nand_manuf_ids);
193-
EXPORT_SYMBOL(nand_flash_ids);
194-
195-
MODULE_LICENSE("GPL");
196-
MODULE_AUTHOR("Thomas Gleixner <tglx@linutronix.de>");
197-
MODULE_DESCRIPTION("Nand device & manufacturer IDs");

0 commit comments

Comments
 (0)