All of lore.kernel.org
 help / color / mirror / Atom feed
From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Driver as built-in instead of module
Date: Fri, 16 Mar 2018 12:35:52 +0100	[thread overview]
Message-ID: <20180316113552.GA20044@kroah.com> (raw)
In-Reply-To: <1622e88aefc.d1d06fad204248.5973277679588738823@iqroottech.com>

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

      reply	other threads:[~2018-03-16 11:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-16  7:53 Driver as built-in instead of module MUHAMMED ASAD P T
2018-03-16  8:21 ` Greg KH
2018-03-16 11:18   ` MUHAMMED ASAD P T
2018-03-16 11:35     ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180316113552.GA20044@kroah.com \
    --to=greg@kroah.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.