summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/m25p80.c
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2015-08-19 11:56:44 +0200
committerBrian Norris <computersforpeace@gmail.com>2015-09-12 01:04:55 +0200
commitf9f3ce835ddce3c669eee869253105f88819888b (patch)
tree583437baa5ae4515d6717b408a8b1249c0dba6b4 /drivers/mtd/devices/m25p80.c
parentmtd: spi-nor: Use write_sr for write status (diff)
downloadlinux-f9f3ce835ddce3c669eee869253105f88819888b.tar.xz
linux-f9f3ce835ddce3c669eee869253105f88819888b.zip
mtd: spi-nor: Zap unneeded write_enable from write_reg
The 'write_enable' argument is unused and unneeded, so remove it from the API. Signed-off-by: Jagan Teki <jteki@openedev.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Han Xu <han.xu@freescale.com> [Brian: fixed for nxp-spifi.c] Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/devices/m25p80.c')
-rw-r--r--drivers/mtd/devices/m25p80.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 05bf0d71abea..4b5d7a4655fd 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -61,8 +61,7 @@ static int m25p_cmdsz(struct spi_nor *nor)
return 1 + nor->addr_width;
}
-static int m25p80_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len,
- int wr_en)
+static int m25p80_write_reg(struct spi_nor *nor, u8 opcode, u8 *buf, int len)
{
struct m25p *flash = nor->priv;
struct spi_device *spi = flash->spi;