Skip to content
Snippets Groups Projects
Commit a24f9143 authored by Federico Vaga's avatar Federico Vaga Committed by Adam Wujek
Browse files

kernel: fix headers


Many mach headers has been moved out of scope. Of course they are still
accessible by in an ugly way. Here I'm following the ugly way in order
to get something working.

What to do with this headers, perhaps, needs a discussion. I personally
think that we need our local headers with hardware definitions. The
reason is that we saw that in future kernel version some of these
headers complitely disappear. The hardware definitions never change so
we can safely copy them and remove a dependency with an external project.

Signed-off-by: default avatarFederico Vaga <federico.vaga@cern.ch>
parent 9f0eeff4
Branches
Tags
No related merge requests found
......@@ -29,6 +29,12 @@
#include <linux/moduleparam.h>
#include <linux/netdevice.h>
/*
* Ugly trick to be able to use headers that have been moved out
* from mach/ directory
*/
#include <mach/../../at91_aic.h>
#include "../wbgen-regs/pstats-regs.h"
#include "wr_pstats.h"
......
......@@ -40,6 +40,12 @@
#include <linux/spinlock.h>
#include <linux/io.h>
/*
* Ugly trick to be able to use headers that have been moved out
* from mach/ directory
*/
#include <mach/../../at91_aic.h>
#include "../wbgen-regs/rtu-regs.h"
#include "wr_rtu.h"
......
......@@ -19,6 +19,13 @@
#include <asm/mach/map.h>
#include <asm/mach/irq.h>
#include <mach/at91sam9g45.h>
/*
* Ugly trick to be able to use headers that have been moved out
* from mach/ directory
*/
#include <mach/../../at91_aic.h>
#define DRV_NAME "wr_vic"
#define PFX DRV_NAME ": "
......
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