From bfdee0f0c7aa4a855598a1f7c78357a86c7445b4 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 3 Nov 2013 07:56:29 -0600 Subject: [PATCH] SST25 driver: Added one more use of sst25_cmd. From David Sidrane --- drivers/mtd/sst25.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/mtd/sst25.c b/drivers/mtd/sst25.c index a77b4e21ea..923eea670d 100644 --- a/drivers/mtd/sst25.c +++ b/drivers/mtd/sst25.c @@ -561,17 +561,10 @@ static inline int sst25_chiperase(struct sst25_dev_s *priv) sst25_wren(priv); - /* Select this FLASH part */ - - SPI_SELECT(priv->dev, SPIDEV_FLASH, true); - /* Send the "Chip Erase (CE)" instruction */ - (void)SPI_SEND(priv->dev, SST25_CE); + sst25_cmd(priv, SST25_CE); - /* Deselect the FLASH */ - - SPI_SELECT(priv->dev, SPIDEV_FLASH, false); fvdbg("Return: OK\n"); return OK; }