Oct. 4, 2013
2:18 p.m.
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