]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[MIPS] Alchemy: Fix ids in Alchemy db dma device table
authorWolfgang Ocker <weo@reccoware.de>
Sun, 10 Feb 2008 19:31:33 +0000 (20:31 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 12 Mar 2008 14:14:40 +0000 (14:14 +0000)
commit0ec734c2b8b005667ffdaef8610d1024630683b0
tree8e39253f9d521bb45bf59546a8c15eb41246cb11
parentbaadac8b10c5ac15ce3d26b68fa266c8889b163f
[MIPS] Alchemy: Fix ids in Alchemy db dma device table

0 is a valid device id (DSCR_CMD0_UART0_TX), so we can't use it to mark
an empty entry in the device table. Use ~0 instead and search for id ~0
when looking for a free entry.

Signed-off-by: Wolfgang Ocker <weo@reccoware.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/au1000/common/dbdma.c