From dab3202a03107c89a0a38c52b1695cb008e41eae Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 1 Nov 2010 23:18:18 -0700 Subject: [PATCH] altos: Don't initialize SPI bus twice. Signed-off-by: Keith Packard --- src/ao_m25.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ao_m25.c b/src/ao_m25.c index a4f80d86..39bcac86 100644 --- a/src/ao_m25.c +++ b/src/ao_m25.c @@ -373,7 +373,5 @@ ao_flash_init(void) SPI_CS_PORT |= M25_CS_MASK; /* raise all CS pins */ SPI_CS_DIR |= M25_CS_MASK; /* set CS pins as outputs */ SPI_CS_SEL &= ~M25_CS_MASK; /* set CS pins as GPIO */ - ao_spi_init(); - ao_cmd_register(&ao_flash_cmds[0]); } -- 2.30.2