LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Kumar Gala <galak@kernel.crashing.org>
To: jimmy liu <jimmyzhmliu@yahoo.com>
Cc: linuxppc-dev@ozlabs.org, hs@denx.de
Subject: Re: [PATCH]	I2C:	Add I2C support for the MPC8260
Date: Wed, 24 Jan 2007 23:44:57 -0600	[thread overview]
Message-ID: <A51B6AE8-D9B9-4DB1-901A-61CF7DA08124@kernel.crashing.org> (raw)
In-Reply-To: <20070125045617.40490.qmail@web53115.mail.yahoo.com>


On Jan 24, 2007, at 10:56 PM, jimmy liu wrote:

> When I add mpc8260 I2C driver to Linux Kernel 2.6.19,
> the init function looks like that
>  static int __init fsl_i2c_init(void)
>  {
>   return driver_register(&fsl_i2c_driver);
>  }
>
> I set the debug on, and found that the fsl_i2c_probe()
> function is never
> called, so there is not I2C device enabled, and the
> user space function
> open("/dev/i2c-0",O_RDWR) always return error. I set
> something wrong?

You need something to create a device to match the driver you've just  
registered.  This has usually been done with the platform bus and  
using platform_devices in the past.

- k

  reply	other threads:[~2007-01-25  5:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-25  4:56 [PATCH] I2C: Add I2C support for the MPC8260 jimmy liu
2007-01-25  5:44 ` Kumar Gala [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-11-21 15:55 Heiko Schocher
2005-11-23  7:01 ` Kumar Gala
2005-11-23 18:29   ` Heiko Schocher
2005-11-23 19:06     ` Kumar Gala
2005-11-24 11:17     ` Christoph Hellwig

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=A51B6AE8-D9B9-4DB1-901A-61CF7DA08124@kernel.crashing.org \
    --to=galak@kernel.crashing.org \
    --cc=hs@denx.de \
    --cc=jimmyzhmliu@yahoo.com \
    --cc=linuxppc-dev@ozlabs.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