<p dir="ltr">Hi, </p>
<p dir="ltr">I am writting a driver to control an i2c device.<br>
Is it possible to call 'i2c_add_driver' and 'i2c_new_device' back to back from module init function?</p>
<p dir="ltr">Currently i am getting error 'Bug scheduling while atomic' on calling i2c_new_device.<br>
Any pointer to debug furthe will be very helpful.</p>
<p dir="ltr">Thanks,<br>
Chetan Nanda<br>
</p>