]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/infiniband/hw/ehca/ehca_sqp.c
Merge branch 'task_killable' of git://git.kernel.org/pub/scm/linux/kernel/git/willy...
[linux-2.6-omap-h63xx.git] / drivers / infiniband / hw / ehca / ehca_sqp.c
index f0792e5fbd02eccf7e6a02040df994a86505cc66..79e72b25b252f33fd6d1d6d5c1ac18b1e12969bd 100644 (file)
  */
 
 
-#include <linux/module.h>
-#include <linux/err.h>
 #include "ehca_classes.h"
 #include "ehca_tools.h"
-#include "ehca_qes.h"
 #include "ehca_iverbs.h"
 #include "hcp_if.h"
 
@@ -93,6 +90,9 @@ u64 ehca_define_sqp(struct ehca_shca *shca,
                return H_PARAMETER;
        }
 
+       if (ehca_nr_ports < 0) /* autodetect mode */
+               return H_SUCCESS;
+
        for (counter = 0;
             shca->sport[port - 1].port_state != IB_PORT_ACTIVE &&
                     counter < ehca_port_act_time;