diff options
author | David Woodhouse <dwmw2@infradead.org> | 2010-05-20 10:54:05 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-05-20 11:56:27 -0400 |
commit | 1e804cec7a05e9bc26a523b1b4d0322bd894d2bc (patch) | |
tree | eac1791c5dfdb7d40cd017f21de816fb38ead0d3 /drivers | |
parent | 73850975e9a070abeed5912a24975d531fd5074c (diff) |
mtd: cfi_cmdset_0002: Fix MODULE_ALIAS and linkage for new 0701 commandset ID
Signed-off-by: Guillaume LECERF <glecerf@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0002.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c index 87e86e93ebf9..cd905a1c0d20 100644 --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmdset_0002.c | |||
@@ -489,7 +489,9 @@ struct mtd_info *cfi_cmdset_0002(struct map_info *map, int primary) | |||
489 | 489 | ||
490 | return cfi_amdstd_setup(mtd); | 490 | return cfi_amdstd_setup(mtd); |
491 | } | 491 | } |
492 | struct mtd_info *cfi_cmdset_0701(struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0002"))); | ||
492 | EXPORT_SYMBOL_GPL(cfi_cmdset_0002); | 493 | EXPORT_SYMBOL_GPL(cfi_cmdset_0002); |
494 | EXPORT_SYMBOL_GPL(cfi_cmdset_0701); | ||
493 | 495 | ||
494 | static struct mtd_info *cfi_amdstd_setup(struct mtd_info *mtd) | 496 | static struct mtd_info *cfi_amdstd_setup(struct mtd_info *mtd) |
495 | { | 497 | { |
@@ -2040,3 +2042,4 @@ static void cfi_amdstd_destroy(struct mtd_info *mtd) | |||
2040 | MODULE_LICENSE("GPL"); | 2042 | MODULE_LICENSE("GPL"); |
2041 | MODULE_AUTHOR("Crossnet Co. <info@crossnet.co.jp> et al."); | 2043 | MODULE_AUTHOR("Crossnet Co. <info@crossnet.co.jp> et al."); |
2042 | MODULE_DESCRIPTION("MTD chip driver for AMD/Fujitsu flash chips"); | 2044 | MODULE_DESCRIPTION("MTD chip driver for AMD/Fujitsu flash chips"); |
2045 | MODULE_ALIAS("cfi_cmdset_0701"); | ||