Skip to content

Instantly share code, notes, and snippets.

@fukusaka
Created April 18, 2010 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fukusaka/370495 to your computer and use it in GitHub Desktop.
Save fukusaka/370495 to your computer and use it in GitHub Desktop.
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