ARM: OMAP2+: NAND: Fix for NAND module build support
authorPhilip, Avinash <avinashphilip@ti.com>
Wed, 2 Nov 2011 09:43:04 +0000 (15:13 +0530)
committerPhilip, Avinash <avinashphilip@ti.com>
Wed, 14 Mar 2012 12:09:33 +0000 (17:39 +0530)
NAND driver fails to build as module with following error.

ERROR: "gpmc_calculate_ecc" [drivers/mtd/nand/omap2.ko] undefined!
ERROR: "gpmc_enable_hwecc" [drivers/mtd/nand/omap2.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

This fixes the same by using EXPORT_SYMBOL.

Note:
This patch was actually reverted before moving gpmc from
postcore_initcall to module_platform_driver. Since moving is completes,
we need this patch.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
arch/arm/mach-omap2/gpmc.c

index c58a3361e236d4612bbf406a6eeb176009f46ce5..1c53c056190a5bdf7f955f1977a312bf87313f9b 100644 (file)
@@ -975,6 +975,7 @@ int gpmc_enable_hwecc(int ecc_type, int cs, int mode,
        gpmc_write_reg(GPMC_ECC_CONTROL, 0x00000101);
        return 0;
 }
+EXPORT_SYMBOL(gpmc_enable_hwecc);
 
 /**
  * gpmc_calculate_ecc - generate non-inverted ecc bytes
@@ -1036,3 +1037,4 @@ int gpmc_calculate_ecc(int ecc_type, int cs,
        }
        return 0;
 }
+EXPORT_SYMBOL(gpmc_calculate_ecc);