Merge to Fedora kernel-2.6.7-1.492
[linux-2.6.git] / drivers / char / pcmcia / synclink_cs.c
index 970e233..adfd48e 100644 (file)
@@ -1513,7 +1513,7 @@ static void shutdown(MGSLPC_INFO * info)
 
        if (info->tx_buf) {
                free_page((unsigned long) info->tx_buf);
-               info->tx_buf = 0;
+               info->tx_buf = NULL;
        }
 
        spin_lock_irqsave(&info->lock,flags);
@@ -2591,7 +2591,7 @@ static void mgslpc_close(struct tty_struct *tty, struct file * filp)
        shutdown(info);
        
        tty->closing = 0;
-       info->tty = 0;
+       info->tty = NULL;
        
        if (info->blocked_open) {
                if (info->close_delay) {
@@ -2695,7 +2695,7 @@ static void mgslpc_hangup(struct tty_struct *tty)
        
        info->count = 0;        
        info->flags &= ~ASYNC_NORMAL_ACTIVE;
-       info->tty = 0;
+       info->tty = NULL;
 
        wake_up_interruptible(&info->open_wait);
 }
@@ -2872,7 +2872,7 @@ static int mgslpc_open(struct tty_struct *tty, struct file * filp)
 cleanup:                       
        if (retval) {
                if (tty->count == 1)
-                       info->tty = 0; /* tty layer will release tty struct */
+                       info->tty = NULL;/* tty layer will release tty struct */
                if(info->count)
                        info->count--;
        }