source: trunk/package/ar7-atm/patches-D7.04.03.00/170-bus_id_removal.patch @ 20039

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

[ar7] add support for new ar7-atm version D7.05.00.00 (#6515)

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.