diff options
| author | [email protected] <[email protected]> | 2012-05-16 12:26:39 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-05-16 12:26:39 +0000 |
| commit | 648b45ee26a3c2e5a981f354377e926506bbde6b (patch) | |
| tree | d8ae9269b1161d11e78cd53ed7396ef88ea2031b /components/drivers | |
| parent | d82a8cce2184ece51c097f749536dbe0b7e65e22 (diff) | |
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2120 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/spi/spi_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/spi/spi_dev.c b/components/drivers/spi/spi_dev.c index 1b3a9f193f..6978715c36 100644 --- a/components/drivers/spi/spi_dev.c +++ b/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);
|
