Ticket #8241: orion_dt2_2.6.37.2.patch

File orion_dt2_2.6.37.2.patch, 1.0 KB (added by maddes, 6 years ago)

-p0 patch for trunk. also applies to backfire.

  • target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c

     
    2424#include <linux/i2c.h> 
    2525#include <linux/reboot.h> 
    2626#include <linux/interrupt.h> 
     27#include <linux/version.h> 
    2728#include <asm/mach-types.h> 
    2829#include <asm/gpio.h> 
    2930#include <asm/leds.h> 
    void __init openwrt_fixup(struct machine_desc *mde 
    437438/* Warning: Freecom uses their own custom bootloader with mach-type (=1500) */ 
    438439MACHINE_START(DT2, "Freecom DataTank Gateway") 
    439440        /* Maintainer: Zintis Petersons <Zintis.Petersons@abcsolutions.lv> */ 
     441#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37) 
    440442        .phys_io        = ORION5X_REGS_PHYS_BASE, 
    441443        .io_pg_offst    = ((ORION5X_REGS_VIRT_BASE) >> 18) & 0xFFFC, 
     444#endif 
    442445        .boot_params    = 0x00000100, 
    443446        .init_machine   = dt2_init, 
    444447        .map_io         = orion5x_map_io,