]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wireless/strip.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6-omap-h63xx.git] / drivers / net / wireless / strip.c
index 4bd14b331862948f558a74955b9c191b7f4502f4..bced3fe1cf8a412968ebc46375b297349b5fcc8d 100644 (file)
@@ -962,12 +962,12 @@ static char *time_delta(char buffer[], long time)
 /* get Nth element of the linked list */
 static struct strip *strip_get_idx(loff_t pos) 
 {
-       struct list_head *l;
+       struct strip *str;
        int i = 0;
 
-       list_for_each_rcu(l, &strip_list) {
+       list_for_each_entry_rcu(str, &strip_list, list) {
                if (pos == i)
-                       return list_entry(l, struct strip, list);
+                       return str;
                ++i;
        }
        return NULL;
@@ -2735,16 +2735,8 @@ static int strip_ioctl(struct tty_struct *tty, struct file *file,
                        return -EFAULT;
                return set_mac_address(strip_info, &addr);
        }
-       /*
-        * Allow stty to read, but not set, the serial port
-        */
-
-       case TCGETS:
-       case TCGETA:
-               return n_tty_ioctl(tty, file, cmd, arg);
-               break;
        default:
-               return -ENOIOCTLCMD;
+               return tty_mode_ioctl(tty, file, cmd, arg);
                break;
        }
        return 0;