mtd: rawnand: Get rid of the ->read_word() hook
Commit c120e75e0e
("mtd: nand: use read_oob() instead of cmdfunc()
for bad block check") removed this only user of the ->read_word()
method but kept the hook in place. Remove it now.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:

committed by
Miquel Raynal

parent
52f05b6b87
commit
7525c9518e
@@ -277,18 +277,6 @@ static uint8_t nand_read_byte16(struct mtd_info *mtd)
|
||||
return (uint8_t) cpu_to_le16(readw(chip->IO_ADDR_R));
|
||||
}
|
||||
|
||||
/**
|
||||
* nand_read_word - [DEFAULT] read one word from the chip
|
||||
* @mtd: MTD device structure
|
||||
*
|
||||
* Default read function for 16bit buswidth without endianness conversion.
|
||||
*/
|
||||
static u16 nand_read_word(struct mtd_info *mtd)
|
||||
{
|
||||
struct nand_chip *chip = mtd_to_nand(mtd);
|
||||
return readw(chip->IO_ADDR_R);
|
||||
}
|
||||
|
||||
/**
|
||||
* nand_select_chip - [DEFAULT] control CE line
|
||||
* @mtd: MTD device structure
|
||||
@@ -5007,8 +4995,6 @@ static void nand_set_defaults(struct nand_chip *chip)
|
||||
/* If called twice, pointers that depend on busw may need to be reset */
|
||||
if (!chip->read_byte || chip->read_byte == nand_read_byte)
|
||||
chip->read_byte = busw ? nand_read_byte16 : nand_read_byte;
|
||||
if (!chip->read_word)
|
||||
chip->read_word = nand_read_word;
|
||||
if (!chip->block_bad)
|
||||
chip->block_bad = nand_block_bad;
|
||||
if (!chip->block_markbad)
|
||||
|
Reference in New Issue
Block a user