[PATCH] denali: nand: Fix build break for driver when built as a module
dinguyen at altera.com
dinguyen at altera.com
Fri Oct 12 00:36:56 EDT 2012
From: Dinh Nguyen <dinguyen at altera.com>
Make denali_init and denali_remove accessible when the driver
is built as a loadable module.
Signed-off-by: Dinh Nguyen <dinguyen at altera.com>
---
drivers/mtd/nand/denali.c | 2 ++
1 file changed, 2 insertions(+)
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);
--
1.7.9.5
More information about the linux-mtd
mailing list