Browse Source

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2120 bbd45198-f89e-11dd-88c7-29a3b14d5316

dzzxzz@gmail.com 13 years ago
parent
commit
648b45ee26
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/drivers/spi/spi_dev.c

+ 1 - 1
components/drivers/spi/spi_dev.c

@@ -127,7 +127,7 @@ static rt_err_t _spidev_device_control(rt_device_t dev, rt_uint8_t cmd, void *ar
 rt_err_t rt_spidev_device_init(struct rt_spi_device* dev, const char* name)
 {
 	struct rt_device* device;
-	RT_ASSERT(device != RT_NULL);
+	RT_ASSERT(dev != RT_NULL);
 	
 	device = &(dev->parent);