summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2016-04-17 15:51:26 +0000
committeradrian <adrian@FreeBSD.org>2016-04-17 15:51:26 +0000
commit6c8d2dfeae380107bd9921521d17efd7a1bb642b (patch)
treec00bf6703c8d9ba09eaebbdcd14bb707e5ca8cb9
parent19d356f9ce8fb3ed95c681042ba83353b299f60b (diff)
downloadFreeBSD-src-6c8d2dfeae380107bd9921521d17efd7a1bb642b.zip
FreeBSD-src-6c8d2dfeae380107bd9921521d17efd7a1bb642b.tar.gz
undo previous commit - WIP was committed by accident.
Noticed by: bz
-rw-r--r--sys/dev/flash/at45d.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/flash/at45d.c b/sys/dev/flash/at45d.c
index 4d3896d..347ed90 100644
--- a/sys/dev/flash/at45d.c
+++ b/sys/dev/flash/at45d.c
@@ -121,7 +121,7 @@ static int
at45d_get_status(device_t dev, uint8_t *status)
{
uint8_t rxBuf[8], txBuf[8];
- struct spi_command cmd = SPI_COMMAND_INITIALIZER;
+ struct spi_command cmd;
int err;
memset(&cmd, 0, sizeof(cmd));
@@ -141,7 +141,7 @@ static int
at45d_get_mfg_info(device_t dev, uint8_t *resp)
{
uint8_t rxBuf[8], txBuf[8];
- struct spi_command cmd = SPI_COMMAND_INITIALIZER;
+ struct spi_command cmd;
int err;
memset(&cmd, 0, sizeof(cmd));
@@ -303,7 +303,7 @@ at45d_task(void *arg)
uint8_t rxBuf[8], txBuf[8];
struct at45d_softc *sc;
struct bio *bp;
- struct spi_command cmd = SPI_COMMAND_INITIALIZER;
+ struct spi_command cmd;
device_t dev, pdev;
caddr_t buf;
u_long len, resid;
OpenPOWER on IntegriCloud