patch-2.4.3 linux/drivers/ieee1394/guid.c
Next file: linux/drivers/ieee1394/guid.h
Previous file: linux/drivers/ieee1394/csr.h
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Thu Mar 1 16:57:11 2001
- Orig file:
v2.4.2/linux/drivers/ieee1394/guid.c
- Orig date:
Wed Feb 21 18:20:22 2001
diff -u --recursive --new-file v2.4.2/linux/drivers/ieee1394/guid.c linux/drivers/ieee1394/guid.c
@@ -219,11 +219,19 @@
host_reset: host_reset,
};
+static struct hpsb_highlevel *hl;
+
void init_ieee1394_guid(void)
{
atomic_set(&outstanding_requests, 0);
- if (!hpsb_register_highlevel("GUID manager", &guid_ops)) {
+ hl = hpsb_register_highlevel("GUID manager", &guid_ops);
+ if (!hl) {
HPSB_ERR("out of memory during ieee1394 initialization");
}
+}
+
+void cleanup_ieee1394_guid(void)
+{
+ hpsb_unregister_highlevel(hl);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)