title: Unknown symbol device_destroy (err -22)
body: <p>I'm trying to create a kernel module called <code>Moduleprobe</code>.</p>
  
  <p>I'm using <code>gcc version 4.9.2 (GCC)</code></p>
  
  <p>The Code used works in the kernel version 3.12. I updated the kernel to the version 4.1.</p>
  
  <p>When calling <code>insmod</code> with the parameters: <code>insmod Moduleprobe.ko</code>, it does not work mounting the module. When I call <code>dmesg</code>, the next message outputs at the bottom:</p>
  
  <pre><code>[  132.078352] Moduleprobe: disagrees about version of symbol device_destroy
  [  132.083842] Moduleprobe: Unknown symbol device_destroy (err -22)
  [  132.088577] Moduleprobe: disagrees about version of symbol device_create
  [  132.093975] Moduleprobe: Unknown symbol device_create (err -22)
  [  778.999595] Moduleprobe: disagrees about version of symbol device_destroy
  [  779.005085] Moduleprobe: Unknown symbol device_destroy (err -22)
  [  779.009819] Moduleprobe: disagrees about version of symbol device_create
  [  779.015217] Moduleprobe: Unknown symbol device_create (err -22)
  </code></pre>
  
  <p>What happened when changing the versions? Is there any changes between kernel versions to make the kernel modules does not work?</p>
  
  <p>Thanks in advance.</p>