[PATCH] I2C: Add I2C support for the MPC8260

Kumar Gala galak at kernel.crashing.org
Thu Jan 25 16:44:57 EST 2007


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



More information about the Linuxppc-dev mailing list