Skip to content

Commit 1e804ce

Browse files
dwmw2David Woodhouse
authored andcommitted
mtd: cfi_cmdset_0002: Fix MODULE_ALIAS and linkage for new 0701 commandset ID
Signed-off-by: Guillaume LECERF <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
1 parent 7385097 commit 1e804ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/mtd/chips/cfi_cmdset_0002.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,9 @@ struct mtd_info *cfi_cmdset_0002(struct map_info *map, int primary)
489489

490490
return cfi_amdstd_setup(mtd);
491491
}
492+
struct mtd_info *cfi_cmdset_0701(struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0002")));
492493
EXPORT_SYMBOL_GPL(cfi_cmdset_0002);
494+
EXPORT_SYMBOL_GPL(cfi_cmdset_0701);
493495

494496
static struct mtd_info *cfi_amdstd_setup(struct mtd_info *mtd)
495497
{
@@ -2040,3 +2042,4 @@ static void cfi_amdstd_destroy(struct mtd_info *mtd)
20402042
MODULE_LICENSE("GPL");
20412043
MODULE_AUTHOR("Crossnet Co. <[email protected]> et al.");
20422044
MODULE_DESCRIPTION("MTD chip driver for AMD/Fujitsu flash chips");
2045+
MODULE_ALIAS("cfi_cmdset_0701");

0 commit comments

Comments
 (0)