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>
This commit is contained in:
committed by
Øyvind Harboe
parent
0136977c40
commit
b0759dfc53
@@ -116,11 +116,6 @@ static int orion_nand_reset(struct nand_device *nand)
|
||||
return orion_nand_command(nand, NAND_CMD_RESET);
|
||||
}
|
||||
|
||||
static int orion_nand_controller_ready(struct nand_device *nand, int timeout)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
NAND_DEVICE_COMMAND_HANDLER(orion_nand_device_command)
|
||||
{
|
||||
struct orion_nand_controller *hw;
|
||||
@@ -175,7 +170,6 @@ struct nand_flash_controller orion_nand_controller =
|
||||
.write_data = orion_nand_write,
|
||||
.write_block_data = orion_nand_fast_block_write,
|
||||
.reset = orion_nand_reset,
|
||||
.controller_ready = orion_nand_controller_ready,
|
||||
.nand_device_command = orion_nand_device_command,
|
||||
.init = orion_nand_init,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user