Commit 51a31706 authored by Andrey Filippov's avatar Andrey Filippov

Another correction

parent 8731fd2f
......@@ -8,7 +8,7 @@
#include <linux/io.h>
#include "x393.h"
static void __iomem mmio_ptr;
static void __iomem* mmio_ptr;
// init_mmio_ptr() should be called once before using any of the other defined functions
......
......@@ -149,7 +149,7 @@ class X393ExportC(object):
# Includes section
txt = '\n#include <linux/io.h>\n'
txt += '#include "x393.h"\n\n'
txt += 'static void __iomem mmio_ptr;\n\n'
txt += 'static void __iomem* mmio_ptr;\n\n'
txt += '// init_mmio_ptr() should be called once before using any of the other defined functions\n\n'
txt += 'int init_mmio_ptr(void) {mmio_ptr = ioremap(0x%08x, 0x%08x); if (!mmio_ptr) return -1; else return 0;}\n'%(self.MAXI0_BASE,self.MAXI0_RANGE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment