source: trunk/package/ar7-atm/patches/170-bus_id_removal.patch @ 17183

Last change on this file since 17183 was 17183, checked in by florian, 7 years ago

[ar7] more 2.6.30 related fixes for ar7-atm

File size: 957 bytes
  • tn7dsl.c

    a b  
    109109#include <linux/vmalloc.h> 
    110110#include <linux/file.h> 
    111111#include <linux/firmware.h> 
     112#include <linux/version.h> 
    112113 
    113114#include <asm/io.h> 
    114115#include <asm/ar7/ar7.h> 
     
    446447} 
    447448 
    448449static struct device avsar = { 
     450#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) 
    449451        .bus_id    = "vlynq", 
     452#endif 
    450453        .release   = avsar_release, 
    451454}; 
    452455 
  • sangam_atm-D7.04.03.00

    diff -urN sangam_atm-D7.04.03.00/tn7dsl.c sangam_atm-D7.04.03.00.new/tn7dsl.c
    old new  
    458458        const struct firmware *fw_entry; 
    459459        size_t size; 
    460460 
     461#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30) 
     462        dev_set_name(&avsar, "avsar"); 
     463#endif 
    461464        printk("requesting firmware image \"ar0700xx.bin\"\n"); 
    462465        if(device_register(&avsar) < 0) { 
    463466                printk(KERN_ERR 
Note: See TracBrowser for help on using the repository browser.