Module Name:    src
Committed By:   jmcneill
Date:           Thu May 10 00:07:08 UTC 2018

Modified Files:
        src/sys/arch/arm/sunxi: sun6i_dma.c

Log Message:
32-bit build fix


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/arm/sunxi/sun6i_dma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/sunxi/sun6i_dma.c
diff -u src/sys/arch/arm/sunxi/sun6i_dma.c:1.4 src/sys/arch/arm/sunxi/sun6i_dma.c:1.5
--- src/sys/arch/arm/sunxi/sun6i_dma.c:1.4	Wed May  9 17:17:33 2018
+++ src/sys/arch/arm/sunxi/sun6i_dma.c	Thu May 10 00:07:08 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: sun6i_dma.c,v 1.4 2018/05/09 17:17:33 jmcneill Exp $ */
+/* $NetBSD: sun6i_dma.c,v 1.5 2018/05/10 00:07:08 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2014-2017 Jared McNeill <[email protected]>
@@ -29,7 +29,7 @@
 #include "opt_ddb.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sun6i_dma.c,v 1.4 2018/05/09 17:17:33 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sun6i_dma.c,v 1.5 2018/05/10 00:07:08 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -396,7 +396,7 @@ sun6idma_attach(device_t parent, device_
 		return;
 	}
 
-	conf = of_search_compatible(phandle, compat_data)->data;
+	conf = (void *)of_search_compatible(phandle, compat_data)->data;
 
 	sc->sc_nchan = conf->num_channels;
 	sc->sc_chan = kmem_alloc(sizeof(*sc->sc_chan) * sc->sc_nchan, KM_SLEEP);

Reply via email to