View Single Post
Old 05-30-09, 01:54 AM   #2
bbj
Registered User
 
Join Date: Oct 2008
Posts: 3
Default Re: Does 96.43.11 works on kernel 2.6.30rc6 ?

Someone posted it. Try this patch.

Code:
diff -Nupr NVIDIA-Linux-x86-96.43.11-pkg1/usr/src/nv/nv.c NVIDIA-Linux-x86-96.43.11-pkg1.new/usr/src/nv/nv.c
--- NVIDIA-Linux-x86-96.43.11-pkg1/usr/src/nv/nv.c      2009-02-23 17:46:00.000000000 -0600
+++ NVIDIA-Linux-x86-96.43.11-pkg1.new/usr/src/nv/nv.c  2009-04-22 15:28:06.391152766 -0500
@@ -495,14 +495,6 @@ static void nvos_proc_create(void)
     if (!proc_nvidia_warnings)
         goto failed;

-    /*
-     * Set the module owner to ensure that the reference
-     * count reflects accesses to the proc files.
-     */
-    proc_nvidia->owner = THIS_MODULE;
-    proc_nvidia_cards->owner = THIS_MODULE;
-    proc_nvidia_warnings->owner = THIS_MODULE;
-
     for (j = 0; j < num_nv_devices; j++)
     {
         nvl = &nv_linux_devices[j];
@@ -521,7 +513,6 @@ static void nvos_proc_create(void)

         entry->data = nv;
         entry->read_proc = nv_kern_read_cardinfo;
-        entry->owner = THIS_MODULE;

         if (nvos_find_agp_capability(dev)) {
             /*
@@ -534,7 +525,6 @@ static void nvos_proc_create(void)
                 goto failed;
             }

-            entry->owner = THIS_MODULE;
             proc_nvidia_agp = entry;

             entry = create_proc_entry("status", flags, proc_nvidia_agp);
@@ -545,7 +535,6 @@ static void nvos_proc_create(void)

             entry->data = nv;
             entry->read_proc = nv_kern_read_status;
-            entry->owner = THIS_MODULE;

             entry = create_proc_entry("host-bridge", flags, proc_nvidia_agp);
             if (!entry) {
@@ -555,7 +544,6 @@ static void nvos_proc_create(void)

             entry->data = NULL;
             entry->read_proc = nv_kern_read_agpinfo;
-            entry->owner = THIS_MODULE;

             entry = create_proc_entry("card", flags, proc_nvidia_agp);
             if (!entry) {
@@ -565,7 +553,6 @@ static void nvos_proc_create(void)

             entry->data = nv;
             entry->read_proc = nv_kern_read_agpinfo;
-            entry->owner = THIS_MODULE;
         }

         NV_PCI_DEV_PUT(dev);
@@ -576,14 +563,12 @@ static void nvos_proc_create(void)
         goto failed;

     entry->read_proc = nv_kern_read_version;
-    entry->owner = THIS_MODULE;

     entry = create_proc_entry("registry", flags, proc_nvidia);
     if (!entry)
         goto failed;

     entry->read_proc = nv_kern_read_registry;
-    entry->owner = THIS_MODULE;

     return;

@@ -610,7 +595,6 @@ nvos_proc_add_warning_file(

     entry->data = (void *)message;
     entry->read_proc = nv_kern_read_warning;
-    entry->owner = THIS_MODULE;
 #endif
 }
bbj is offline   Reply With Quote