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@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to