Use the generic device::SPI locking strategy.

This commit is contained in:
px4dev
2013-09-12 23:56:53 -07:00
parent 3796235967
commit 19fdaf2009
5 changed files with 41 additions and 28 deletions
-3
View File
@@ -367,7 +367,6 @@ out:
int
L3GD20::probe()
{
irqstate_t flags = irqsave();
/* read dummy value to void to clear SPI statemachine on sensor */
(void)read_reg(ADDR_WHO_AM_I);
@@ -393,8 +392,6 @@ L3GD20::probe()
success = true;
}
irqrestore(flags);
if (success)
return OK;