spi: fix mistake from mem branch where spi will fail.
authorThomas Ingleby <thomas.c.ingleby@intel.com>
Fri, 21 Nov 2014 02:05:43 +0000 (02:05 +0000)
committerThomas Ingleby <thomas.c.ingleby@intel.com>
Fri, 21 Nov 2014 11:50:59 +0000 (11:50 +0000)
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
src/spi/spi.c

index 77a6621..7739ce2 100644 (file)
@@ -56,7 +56,7 @@ mraa_spi_init(int bus)
         syslog(LOG_ERR, "spi: Platform Not Initialised");
         return NULL;
     }
-     if (plat->spi_bus_count >! 0) {
+     if (plat->spi_bus_count == 0) {
         syslog(LOG_ERR, "spi: no spi buses defined in platform");
         return NULL;
     }