lantiq: ltq-vmmc: Fix compilation with linux 4.4
authorJohn Crispin <john@openwrt.org>
Fri, 1 Jan 2016 21:21:04 +0000 (21:21 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 1 Jan 2016 21:21:04 +0000 (21:21 +0000)
gpio.h needs the linux/ prefix with linux 4.4.

SVN-Revision: 48057

package/kernel/lantiq/ltq-vmmc/patches/100-target.patch
package/kernel/lantiq/ltq-vmmc/patches/400-falcon.patch

index cabd2d199ca3a2d5fa0c7451f32a57e12dd227f3..974ed831de43453e95167e2c08726131cfdb3108 100644 (file)
 -#include <asm/ifx/ifx_gptu.h>
 +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28))
 +#  include <lantiq.h>
-+#  include <irq.h>
++#  include <linux/irq.h>
 +#  include <lantiq_timer.h>
 +
 +#  define ifx_gptu_timer_request    lq_request_timer
 -#include <asm/ifx/common_routines.h>
 +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28))
 +#  include <lantiq.h>
-+#  include <irq.h>
++#  include <linux/irq.h>
 +#  include <lantiq_timer.h>
 +#  include <linux/dma-mapping.h>
 +
 -#include <asm/ifx_vpe.h>
 +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,28))
 +#  include <lantiq.h>
-+#  include <irq.h>
++#  include <linux/irq.h>
 +#  include <lantiq_soc.h>
-+#  include <gpio.h>
++#  include <linux/gpio.h>
 +#define IFXMIPS_MPS_SRAM              ((u32 *)(KSEG1 + 0x1F200000))
 +#define IFXMIPS_MPS_BASE_ADDR         (KSEG1 + 0x1F107000)
 +#define IFXMIPS_MPS_CHIPID            ((u32 *)(IFXMIPS_MPS_BASE_ADDR + 0x0344))
index d2afc65dcda13082c86a0a83fb8185a6a3547218..7ebf171ad27bb7bc8cba740c382aa6e822168230 100644 (file)
 +++ b/src/mps/drv_mps_vmmc_device.h
 @@ -22,7 +22,12 @@
  #  include <lantiq_soc.h>
- #  include <gpio.h>
+ #  include <linux/gpio.h>
  #define IFXMIPS_MPS_SRAM              ((u32 *)(KSEG1 + 0x1F200000))
 +#if defined(SYSTEM_FALCON)
 +#define IFXMIPS_MPS_BASE_ADDR         (KSEG1 + 0x1D004000)