Commit 26abb0a1 authored by Ben Collins's avatar Ben Collins

IEEE1394(r1129): Initial support for reusing node entries over plug/unplug cycles

parent 93f136bc
......@@ -1008,6 +1008,7 @@ static int __init ieee1394_init(void)
0, 0, NULL, NULL);
bus_register(&ieee1394_bus_type);
bus_create_file(&ieee1394_bus_type, &bus_attr_destroy);
if (init_csr())
return -ENOMEM;
......@@ -1027,6 +1028,7 @@ static void __exit ieee1394_cleanup(void)
cleanup_csr();
bus_remove_file(&ieee1394_bus_type, &bus_attr_destroy);
bus_unregister(&ieee1394_bus_type);
kmem_cache_destroy(hpsb_packet_cache);
......
This diff is collapsed.
......@@ -101,6 +101,9 @@ struct node_entry {
struct device device;
/* Means this node is not attached anymore */
int in_limbo;
struct csr1212_csr *csr;
};
......@@ -188,4 +191,7 @@ void cleanup_ieee1394_nodemgr(void);
/* The template for a host device */
extern struct device nodemgr_dev_template_host;
/* Bus attribute to destroy limbo'd nodes */
extern struct bus_attribute bus_attr_destroy;
#endif /* _IEEE1394_NODEMGR_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment