title: SPI kernel module, how to istantiate the driver?
body: <br>
  I've been tasked to import the spi driver into an existing platform running Openwrt.<br>
  After  "successfully" build the full Openwrt: packages and the kernel matching the one running into the platform, including the spidev kernel module I run into some trouble in make this module work.<br>
  **insmod** of the driver terminates without error, and I see that in the **/sys/class** the creation of the directory **spidev**, but it is empty.<br>
  Looking at the code of the spidev kernel module, the function **probe** has caught my eye. My feel is that this function is what actually allocates the minor device number an make the device available to be used. But it's not clear to me who, or what should call it.<br>
  Another doubt I have is about the architecture. The spi depends on the underlaying architecture, which in my case is the MT7620 soc which is a mipsel architecture have a specific spi code. In my understanding this SOC specific code is wrapped by the spidev kernel module and the link between these two entities should be 
  <pre><code>status = spi_register_driver(&amp;spidev_spi_driver);
  </code></pre>
  <p>in the</p>
  <pre><code>static int __init spidev_init(void)
  </code></pre>
  <p>function.<br>
  Again, I'm far to be sure of what I'm writing and I'm here asking for directions.</p>