diff options
author | Manuel Lauss <mlau@msc-ge.com> | 2008-05-07 13:45:23 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-06-05 19:13:14 +0200 |
commit | ccdb0034f8d5321be42c479dd7fc872ba2a46adb (patch) | |
tree | 0259d6f41a41959e407a514cb712839e7466960e /arch/mips/au1000 | |
parent | [MIPS] Alchemy: export get_au1x00_speed for modules (diff) | |
download | linux-ccdb0034f8d5321be42c479dd7fc872ba2a46adb.tar.xz linux-ccdb0034f8d5321be42c479dd7fc872ba2a46adb.zip |
[MIPS] Alchemy: dbdma: add API to delete custom DDMA device ids.
Add API to delete custom DDMA device ids create with
au1xxx_ddma_device_add().
Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/au1000')
-rw-r--r-- | arch/mips/au1000/common/dbdma.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/mips/au1000/common/dbdma.c b/arch/mips/au1000/common/dbdma.c index 42d555236de1..601ee9180ee4 100644 --- a/arch/mips/au1000/common/dbdma.c +++ b/arch/mips/au1000/common/dbdma.c @@ -216,6 +216,17 @@ u32 au1xxx_ddma_add_device(dbdev_tab_t *dev) } EXPORT_SYMBOL(au1xxx_ddma_add_device); +void au1xxx_ddma_del_device(u32 devid) +{ + dbdev_tab_t *p = find_dbdev_id(devid); + + if (p != NULL) { + memset(p, 0, sizeof(dbdev_tab_t)); + p->dev_id = ~0; + } +} +EXPORT_SYMBOL(au1xxx_ddma_del_device); + /* Allocate a channel and return a non-zero descriptor if successful. */ u32 au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid, void (*callback)(int, void *), void *callparam) |