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:46 a.m.
Message ID <1350017169-22166-1-git-send-email-dinguyen@altera.com>
Download mbox | patch
Permalink /patch/191052/
State New
Headers show

Comments

dinguyen@altera.com - Oct. 12, 2012, 4:46 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(+)
Artem Bityutskiy - Oct. 18, 2012, 9:23 a.m.
On Thu, 2012-10-11 at 22:46 -0600, dinguyen@altera.com wrote:
> 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>

I've folded this patch into
	"mtd: denali: split the generic driver and PCI layer"

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);