* [PATCH] ARM: OMAP2+: Fix GPMC errors when CONFIG_MTD_NAND_OMAP2 is a module
@ 2012-02-29 17:31 Tony Lindgren
0 siblings, 0 replies; only message in thread
From: Tony Lindgren @ 2012-02-29 17:31 UTC (permalink / raw)
To: linux-arm-kernel
Otherwise we can get:
ERROR: "gpmc_calculate_ecc" [drivers/mtd/nand/omap2.ko] undefined!
ERROR: "gpmc_enable_hwecc" [drivers/mtd/nand/omap2.ko] undefined!
Signed-off-by: Tony Lindgren <tony@atomide.com>
--- a/arch/arm/mach-omap2/gpmc.c
+++ b/arch/arm/mach-omap2/gpmc.c
@@ -888,6 +888,7 @@ int gpmc_enable_hwecc(int cs, int mode, int dev_width, int ecc_size)
gpmc_write_reg(GPMC_ECC_CONFIG, val);
return 0;
}
+EXPORT_SYMBOL(gpmc_enable_hwecc);
/**
* gpmc_calculate_ecc - generate non-inverted ecc bytes
@@ -918,3 +919,4 @@ int gpmc_calculate_ecc(int cs, const u_char *dat, u_char *ecc_code)
gpmc_ecc_used = -EINVAL;
return 0;
}
+EXPORT_SYMBOL(gpmc_calculate_ecc);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-29 17:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-29 17:31 [PATCH] ARM: OMAP2+: Fix GPMC errors when CONFIG_MTD_NAND_OMAP2 is a module Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).