Staging: dt3155v4l: correcting a pointer mismatch bug and cleanups
authorMarin Mitov <mitov@issp.bas.bg>
Sun, 6 Jun 2010 11:16:07 +0000 (14:16 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Jun 2010 23:50:04 +0000 (16:50 -0700)
commitf932e3a361731b403b1c2982197cea7e3d8e0e66
tree6690254285f348184dd3e7ebccc6efe6760c01e3
parent616f58f6ec5e5777c343499ad65a34e671533e4b
Staging: dt3155v4l: correcting a pointer mismatch bug and cleanups

The third argument of dma_alloc_coherent() is of type dma_addr_t and is defined
as u64 for x86_64, while the member 'device_base' of struct dma_coherent_mem is
defined as u32.

While at it, clean up the code. Now if dev->dma_mem != NULL all the fields/members
are already properly initialized.

Signed-off-by: Marin Mitov <mitov@issp.bas.bg>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/dt3155v4l/dt3155v4l.c