From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg@kroah.com (Greg KH) Date: Fri, 16 Mar 2018 12:35:52 +0100 Subject: Driver as built-in instead of module In-Reply-To: <1622e88aefc.d1d06fad204248.5973277679588738823@iqroottech.com> References: <1622dccca72.acc992e8118.5664081071568038926@iqroottech.com> <20180316082100.GA4101@kroah.com> <1622e88aefc.d1d06fad204248.5973277679588738823@iqroottech.com> Message-ID: <20180316113552.GA20044@kroah.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Fri, Mar 16, 2018 at 04:48:52PM +0530, MUHAMMED ASAD P T wrote: > Do you have a pointer to the source of your driver anywhere to see if it > even can be built into the kernel? > > > [Reply] For module, we use module_init(), I am looking for the kernel functions for built-in driver. As a module, driver probe() gets called. > When driver configured as built-in, then module_init() is not called, i.e. print in module_init() is not coming. module_init() should work just fine. Again, do you have a pointer to the source of your code anywhere so we can review it to see what the problem might be? thanks, greg k-h