package/base-files-network: use new service wrappers
[openwrt.git] / package / ar7-atm / patches-D7.04.03.00 / 200-2.6.37_args.patch
1 Index: sangam_atm-D7.04.03.00/tn7atm.c
2 ===================================================================
3 --- sangam_atm-D7.04.03.00.orig/tn7atm.c 2011-02-18 13:36:12.000000000 +0100
4 +++ sangam_atm-D7.04.03.00/tn7atm.c 2011-02-18 13:36:21.268956988 +0100
5 @@ -1867,7 +1867,11 @@
6
7 dgprintf (4, "device %s being registered\n", priv->name);
8
9 + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
10 mydev = atm_dev_register (priv->proc_name, &tn7atm_ops, -1, NULL);
11 + #else
12 + mydev = atm_dev_register (priv->proc_name, NULL, &tn7atm_ops, -1, NULL);
13 + #endif
14
15 if (mydev == NULL)
16 {
17 Index: sangam_atm-D7.04.03.00/tn7dsl.c
18 ===================================================================
19 --- sangam_atm-D7.04.03.00.orig/tn7dsl.c 2011-02-18 13:36:12.000000000 +0100
20 +++ sangam_atm-D7.04.03.00/tn7dsl.c 2011-02-18 13:37:41.678957013 +0100
21 @@ -466,14 +466,17 @@
22 {
23 const struct firmware *fw_entry;
24 size_t size;
25 + int ret;
26
27 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
28 dev_set_name(&avsar, "avsar");
29 #endif
30 printk("requesting firmware image \"ar0700xx.bin\"\n");
31 - if(device_register(&avsar) < 0) {
32 + dev_set_name(&avsar, "avsar");
33 + ret = device_register(&avsar);
34 + if (ret < 0) {
35 printk(KERN_ERR
36 - "avsar: device_register fails\n");
37 + "avsar: device_register fails, error%i\n", ret);
38 return -1;
39 }
40
This page took 0.043606 seconds and 5 git commands to generate.