patch-2.3.47 linux/drivers/ieee1394/hosts.c

Next file: linux/drivers/ieee1394/hosts.h
Previous file: linux/drivers/fc4/fc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/drivers/ieee1394/hosts.c linux/drivers/ieee1394/hosts.c
@@ -23,31 +23,6 @@
 static struct hpsb_host_template *templates = NULL;
 spinlock_t templates_lock = SPIN_LOCK_UNLOCKED;
 
-
-/*
- * The following function is exported for module usage.  It will
- * be called from high-level drivers such as the raw driver.
- */
-int hpsb_get_host_list(struct hpsb_host *list[], int list_size)
-{
-    struct hpsb_host *host, **ptr;
-    struct hpsb_host_template *tmpl;
-    int count=0;
-
-    ptr = list;
-
-    for (tmpl = templates ; tmpl != NULL; tmpl = tmpl->next) {
-        for (host = tmpl->hosts; (host != NULL) && (count < list_size); 
-             host = host->next) {
-            *ptr = host;
-            ptr++;
-            count++;
-        }
-    }
-
-    return count;
-}
-
 /*
  * This function calls the add_host/remove_host hooks for every host currently
  * registered.  Init == TRUE means add_host.
@@ -131,7 +106,7 @@
         h->timeout_tq.data = h;
 
         h->topology_map = h->csr.topology_map + 3;
-        h->speed_map = h->csr.speed_map + 2;
+        h->speed_map = (u8 *)(h->csr.speed_map + 2);
 
         h->template = tmpl;
         if (hd_size) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)