Skip to content

Commit

Permalink
spi-nor: intel-spi: Remove unused preopcodes field
Browse files Browse the repository at this point in the history
This field is not used in the driver anymore so remove it.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
  • Loading branch information
Mika Westerberg authored and Cyrille Pitchen committed Jan 7, 2018
1 parent 2167d6d commit a6e4836
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/mtd/spi-nor/intel-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@
* @erase_64k: 64k erase supported
* @opcodes: Opcodes which are supported. This are programmed by BIOS
* before it locks down the controller.
* @preopcodes: Preopcodes which are supported.
*/
struct intel_spi {
struct device *dev;
Expand All @@ -155,7 +154,6 @@ struct intel_spi {
bool swseq_erase;
bool erase_64k;
u8 opcodes[8];
u8 preopcodes[2];
};

static bool writeable;
Expand Down Expand Up @@ -400,10 +398,6 @@ static int intel_spi_init(struct intel_spi *ispi)
ispi->opcodes[i] = opmenu0 >> i * 8;
ispi->opcodes[i + 4] = opmenu1 >> i * 8;
}

val = readl(ispi->sregs + PREOP_OPTYPE);
ispi->preopcodes[0] = val;
ispi->preopcodes[1] = val >> 8;
}
}

Expand Down

0 comments on commit a6e4836

Please sign in to comment.