public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Ryan Raasch <ryan.raasch@gmail.com>
To: Carlos Lavin <carlos.lavin@vista-silicon.com>,
	v4l2_linux <linux-media@vger.kernel.org>
Subject: Re: module ov7670.c
Date: Wed, 11 Nov 2009 21:50:42 +0100	[thread overview]
Message-ID: <4AFB23A2.3070702@gmail.com> (raw)
In-Reply-To: <4AFAAB44.1000001@gmail.com>



Ryan Raasch wrote:
> 
> 
> Carlos Lavin wrote:
>> i am asking that if it is possible to start a module without 
>> MODULE_INIT function in the body of program.
>>
> It looks as though all drivers that use v4l2_i2c_driver_data DO NOT use 
> the module_init function.
> 
> According to commit 14386c2b7793652a656021a3345cff3b0f6771f9, 
> v4l2_subdev is used instead. However, this is different for me also.
> 
> 
> Ryan
> 

Ok. I was curious myself, so i looked how it works.

The file v4l2-i2c-drv.h has the module_init() code. So when this header 
file is included, you get the initialization code for free.


>>
>> 2009/11/11 Ryan Raasch <ryan.raasch@gmail.com 
>> <mailto:ryan.raasch@gmail.com>>
>>
>>
>>
>>     Carlos Lavin wrote:
>>
>>         i don't know that it pass with this module, ov7670.c , because i
>>         don't see
>>         in the screen of my Pc this modulo when the kernel is load. this
>>         module
>>         haven't the module_init  function , and i don't know if it is
>>         possible to
>>         run it without this function. the version kernel where i work is
>>         2.6.30,
>>         also i have patched this modulo for works with the library
>>         soc_camera.h
>>         can anybody help me? I am rookie in this topics.
>>         thanks.
>>         --
>>
>>     What are you asking?
>>
>>     Ryan
>>
>>         video4linux-list mailing list
>>         Unsubscribe mailto:video4linux-list-request@redhat.com
>>         <mailto:video4linux-list-request@redhat.com>?subject=unsubscribe
>>         https://www.redhat.com/mailman/listinfo/video4linux-list
>>
>>

      reply	other threads:[~2009-11-11 20:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-11  9:36 module ov7670.c Carlos Lavin
2009-11-11 10:53 ` Ryan Raasch
     [not found]   ` <fe6fd5f60911110320x45475aa4j38930660e9b2e81b@mail.gmail.com>
2009-11-11 12:17     ` Ryan Raasch
2009-11-11 20:50       ` Ryan Raasch [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=4AFB23A2.3070702@gmail.com \
    --to=ryan.raasch@gmail.com \
    --cc=carlos.lavin@vista-silicon.com \
    --cc=linux-media@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox