]> err.no Git - linux-2.6/blobdiff - drivers/isdn/sc/message.c
[Blackfin] arch: Add proper SW System Reset delay sequence
[linux-2.6] / drivers / isdn / sc / message.c
index ca204da3257d3918ae150c30d8b08a2e92bd35db..0b4c4f15abdd59496129f9103417c7ae55fc187a 100644 (file)
  *     +1 (416) 297-8565
  *     +1 (416) 297-6433 Facsimile
  */
-
+#include <linux/sched.h>
 #include "includes.h"
 #include "hardware.h"
 #include "message.h"
 #include "card.h"
 
-extern board *sc_adapter[];
-extern unsigned int cinst;
-
-/*
- * Obligatory function prototypes
- */
-extern int indicate_status(int,ulong,char*);
-extern int scm_command(isdn_ctrl *);
-
-
 /*
  * receive a message from the board
  */
@@ -208,8 +198,7 @@ int send_and_receive(int card,
        tries = 0;
        /* wait for the response */
        while (tries < timeout) {
-               set_current_state(TASK_INTERRUPTIBLE);
-               schedule_timeout(1);
+               schedule_timeout_interruptible(1);
                
                pr_debug("SAR waiting..\n");