Patchwork denali: nand: Fix build break for driver when built as a module

login
register
mail settings
Submitter dinguyen@altera.com
Date Oct. 12, 2012, 4:36 a.m.
Message ID <1350016616-22098-1-git-send-email-dinguyen@altera.com>
Download mbox | patch
Permalink /patch/191051/
State New
Headers show

Comments

dinguyen@altera.com - Oct. 12, 2012, 4:36 a.m.
From: Dinh Nguyen <dinguyen@altera.com>

Make denali_init and denali_remove accessible when the driver
is built as a loadable module.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
---
 drivers/mtd/nand/denali.c |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index 8f99e9b..0c8bb6b 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -1596,6 +1596,7 @@  failed_req_irq:
 
 	return ret;
 }
+EXPORT_SYMBOL(denali_init);
 
 /* driver exit point */
 void denali_remove(struct denali_nand_info *denali)
@@ -1604,3 +1605,4 @@  void denali_remove(struct denali_nand_info *denali)
 	dma_unmap_single(denali->dev, denali->buf.dma_buf, DENALI_BUF_SIZE,
 			DMA_BIDIRECTIONAL);
 }
+EXPORT_SYMBOL(denali_remove);