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

Another correction

parent 8731fd2f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -8,7 +8,7 @@
#include <linux/io.h>
#include <linux/io.h>
#include "x393.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
// init_mmio_ptr() should be called once before using any of the other defined functions


+1 −1
Original line number Original line Diff line number Diff line
@@ -149,7 +149,7 @@ class X393ExportC(object):
        # Includes section
        # Includes section
        txt = '\n#include <linux/io.h>\n'
        txt = '\n#include <linux/io.h>\n'
        txt +=  '#include "x393.h"\n\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 +=  '// 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)
        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)