Guest User

kernel_v3.10_nvidia_fix.patch

a guest
Jul 10th, 2013
774
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/modules/nvidia-kernel/nv-i2c.c b/modules/nvidia-kernel/nv-i2c.c
  2. index a702506..ece9c3c 100644
  3. --- a/modules/nvidia-kernel/nv-i2c.c
  4. +++ b/modules/nvidia-kernel/nv-i2c.c
  5. @@ -324,13 +324,10 @@ BOOL NV_API_CALL nv_i2c_del_adapter(nv_state_t *nv, void *data)
  6.      if (!pI2cAdapter) return FALSE;
  7.  
  8.      // attempt release with the OS
  9. -    osstatus = i2c_del_adapter(pI2cAdapter);
  10. +    i2c_del_adapter(pI2cAdapter);
  11.  
  12. -    if (!osstatus)
  13. -    {
  14. -        os_free_mem(pI2cAdapter);
  15. -        wasReleased = TRUE;
  16. -    }
  17. +   os_free_mem(pI2cAdapter);
  18. +   wasReleased = TRUE;
  19.  
  20.      return wasReleased;
  21.  }
  22. diff --git a/modules/nvidia-kernel/nv-procfs.c b/modules/nvidia-kernel/nv-procfs.c
  23. index 3e05ef5..75fc7e0 100644
  24. --- a/modules/nvidia-kernel/nv-procfs.c
  25. +++ b/modules/nvidia-kernel/nv-procfs.c
  26. @@ -14,6 +14,8 @@
  27.  #include "os-interface.h"
  28.  #include "nv-linux.h"
  29.  
  30. +#undef CONFIG_PROC_FS
  31. +
  32.  #if defined(CONFIG_PROC_FS)
  33.  
  34.  #include "nv_compiler.h"
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×