Bläddra i källkod

Driver core: internal struct dma_coherent_mem, change type of a member.

struct dma_coherent_mem in drivers/base/dma-coherent.c
has member 'device_base' that is of type u32,
but is assigned value of type dma_addr_t, which may be
64 bits for x86_64. Change the type to dma_addr_t.

Signed-off-by: Marin Mitov <mitov@issp.bas.bg>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Marin Mitov 15 år sedan
förälder
incheckning
ed1d218c95
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      drivers/base/dma-coherent.c

+ 1 - 1
drivers/base/dma-coherent.c

@@ -8,7 +8,7 @@
 
 
 struct dma_coherent_mem {
 struct dma_coherent_mem {
 	void		*virt_base;
 	void		*virt_base;
-	u32		device_base;
+	dma_addr_t	device_base;
 	int		size;
 	int		size;
 	int		flags;
 	int		flags;
 	unsigned long	*bitmap;
 	unsigned long	*bitmap;