Release the correct fifo in can_receive()

This commit is contained in:
Thomas Daede 2012-10-28 02:53:53 -05:00
parent 1bb0e9b970
commit f385341495

View File

@ -308,5 +308,5 @@ void can_receive(u32 canport, u8 fifo, bool release, u32 *id, bool *ext,
/* Release the FIFO. */
if (release)
can_fifo_release(CAN1, 0);
can_fifo_release(canport, fifo);
}