]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: do not try to load modules for of-registered devices
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 16 Jan 2015 08:07:22 +0000 (00:07 -0800)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 26 Jan 2015 15:52:51 +0000 (16:52 +0100)
commit1bc2edca6f3ce49bb3201338679e133d8dc63264
tree35f203b097acdd6f41b8c2b2b78f21e207f90c42
parente6d1ca79c02f4ed6f69a9211c5deac1306847289
i2c: do not try to load modules for of-registered devices

Trying to register an I2C device asynchronously (via async_schedule() call)
results in an ugly warning from request_module() warning about potential
deadlock (because request_module tries to wait for async works to
complete). While we could try to switch to request_module_nowait(), other
buses, as well as I2C itself when not using device tree, do not try to load
modules, but rather rely on the standard infrastructure (udev) to execute
module loading, and we should be doing the same.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c