summaryrefslogtreecommitdiff
path: root/src/flash/nand/mx2.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2010-12-31 19:18:08 +0800
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-01-02 19:49:36 +0100
commitb0759dfc538b973cce67df93f8a7fe239bfb4c74 (patch)
tree6b1e71517ff431ffda9a3f2da2bbb6a688c5e41b /src/flash/nand/mx2.c
parent0136977c40e41cdaab5d775c4e370763006ad99c (diff)
downloadopenocd+libswd-b0759dfc538b973cce67df93f8a7fe239bfb4c74.tar.gz
openocd+libswd-b0759dfc538b973cce67df93f8a7fe239bfb4c74.tar.bz2
openocd+libswd-b0759dfc538b973cce67df93f8a7fe239bfb4c74.tar.xz
openocd+libswd-b0759dfc538b973cce67df93f8a7fe239bfb4c74.zip
flash/nand: review NAND driver interface
From struct nand_flash_controller : - remove unused field register_commands; - remove field controller_ready, exported but never referenced. Remove dead code pointed by controller_ready. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/flash/nand/mx2.c')
-rw-r--r--src/flash/nand/mx2.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/flash/nand/mx2.c b/src/flash/nand/mx2.c
index 147546d7..42bb0720 100644
--- a/src/flash/nand/mx2.c
+++ b/src/flash/nand/mx2.c
@@ -73,7 +73,6 @@ static int do_data_output(struct nand_device *nand);
static int imx27_command(struct nand_device *nand, uint8_t command);
static int imx27_address(struct nand_device *nand, uint8_t address);
-static int imx27_controller_ready(struct nand_device *nand, int tout);
NAND_DEVICE_COMMAND_HANDLER(imx27_nand_device_command)
{
@@ -229,11 +228,6 @@ static int imx27_write_data(struct nand_device *nand, uint16_t data)
return ERROR_NAND_OPERATION_FAILED;
}
-static int imx27_nand_ready(struct nand_device *nand, int timeout)
-{
- return imx27_controller_ready(nand, timeout);
-}
-
static int imx27_reset(struct nand_device *nand)
{
/*
@@ -342,7 +336,7 @@ static int imx27_address(struct nand_device *nand, uint8_t address)
return ERROR_OK;
}
-static int imx27_controller_ready(struct nand_device *nand, int tout)
+static int imx27_nand_ready(struct nand_device *nand, int tout)
{
uint16_t poll_complete_status;
struct mx2_nf_controller *mx2_nf_info = nand->controller_priv;
@@ -771,6 +765,5 @@ struct nand_flash_controller imx27_nand_flash_controller = {
.read_data = &imx27_read_data,
.write_page = &imx27_write_page,
.read_page = &imx27_read_page,
- .controller_ready = &imx27_controller_ready,
.nand_ready = &imx27_nand_ready,
};