Re: multiple i2c-ocores adapters

Peter Korsgaard
2015-10-02T20:51:26Z

>>>>> "York" == York Sun <yorksun@freescale.com> writes:

Hi,

>> I guess your problem is that the driver core is complaining about
>> duplicate names for your platform devices (generated from the
>> mfd_cell). Make sure you set the .id member to something unique.

> What I got was

> sysfs: cannot create duplicate filename '/bus/platform/devices/ocores-i2c'

> I think it is caused by the i2c-ocores driver. Will dig deeper.

Like I said, this sounds like you are trying to register multiple
platform devices with the same name (ocores-i2c) and id == -1.

Please make sure you use unique ids when you have more than 1 device
instance on your system.

--
Bye, Peter Korsgaard