Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
diff -ur Velocity_1.36.orig/velocity_main.c Velocity_1.36/velocity_main.c
--- Velocity_1.36.orig/velocity_main.c 2008-06-09 23:35:43.000000000 +0900
+++ Velocity_1.36/velocity_main.c 2009-09-19 04:57:00.000000000 +0900
@@ -632,8 +632,6 @@
pInfo->hw.hw_addr = hw_addr;
- velocity_create_proc_entry(pInfo);
-
mac_wol_reset(&pInfo->hw);
// get MII PHY Id
@@ -699,6 +697,8 @@
}
#endif
+ velocity_create_proc_entry(pInfo);
+
velocity_print_info(pInfo);
pci_set_drvdata(pcid, pInfo);
diff -ur Velocity_1.36.orig/velocity_proc.c Velocity_1.36/velocity_proc.c
--- Velocity_1.36.orig/velocity_proc.c 2008-06-09 23:35:43.000000000 +0900
+++ Velocity_1.36/velocity_proc.c 2009-09-19 05:24:29.000000000 +0900
@@ -201,8 +201,8 @@
if (pEntry->type & VELOCITY_PROC_DIR)
velocity_delete_proc_tab(pInfo,(PVELOCITY_PROC_ENTRY) pEntry->childs);
- else
- velocity_delete_proc_tab(pInfo,(PVELOCITY_PROC_ENTRY) pEntry->siblings);
+
+ velocity_delete_proc_tab(pInfo,(PVELOCITY_PROC_ENTRY) pEntry->siblings);
remove_proc_entry(pEntry->name,pEntry->pOsParent);
kfree(pEntry);
@@ -263,8 +263,6 @@
void velocity_free_proc_fs(PVELOCITY_INFO pInfo) {
struct proc_dir_entry* ptr;
-// remove_proc_entry(pInfo->pProcDir, velocity_dir);
-
if (velocity_dir==NULL)
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment