i2c_add_driver and i2c_new_device handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am writting a driver to control an i2c device.
Is it possible to call 'i2c_add_driver' and 'i2c_new_device' back to back from module init function?

Currently i am getting error 'Bug scheduling while atomic' on calling i2c_new_device.
Any pointer to debug furthe will be very helpful.

Thanks,
Chetan Nanda

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux