diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-01-07 15:24:21 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-01-08 08:26:58 -0500 |
commit | 84683a7e081ff60e75039cd2475776654ebbf526 (patch) | |
tree | 952b7c174eb7b363848292e8747b758a84c70937 /drivers/ata/sata_dwc_460ex.c | |
parent | f71d148f1adf82edef467d41a2a3be22b36811f0 (diff) | |
download | talos-op-linux-84683a7e081ff60e75039cd2475776654ebbf526.tar.gz talos-op-linux-84683a7e081ff60e75039cd2475776654ebbf526.zip |
sata_dwc_460ex: enable COMPILE_TEST for the driver
To test how the driver could be compiled in the non-native environment let's
enable COMPILE_TEST for it. It would be useful for further work.
This patch enables COMPILE_TEST for the driver and fixes compilation errors on
at least x86 platforms.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/sata_dwc_460ex.c')
-rw-r--r-- | drivers/ata/sata_dwc_460ex.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c index 5c3439558144..c1723e04494e 100644 --- a/drivers/ata/sata_dwc_460ex.c +++ b/drivers/ata/sata_dwc_460ex.c @@ -48,6 +48,18 @@ #define DRV_NAME "sata-dwc" #define DRV_VERSION "1.3" +#ifndef out_le32 +#define out_le32(a, v) __raw_writel(__cpu_to_le32(v), (void __iomem *)(a)) +#endif + +#ifndef in_le32 +#define in_le32(a) __le32_to_cpu(__raw_readl((void __iomem *)(a))) +#endif + +#ifndef NO_IRQ +#define NO_IRQ 0 +#endif + /* SATA DMA driver Globals */ #define DMA_NUM_CHANS 1 #define DMA_NUM_CHAN_REGS 8 |