]> git.baikalelectronics.ru Git - kernel.git/commit
spi: of: do explicitly request modules for of-registered devices
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 25 Mar 2015 20:32:22 +0000 (13:32 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 25 Mar 2015 21:34:52 +0000 (14:34 -0700)
commitf60e87c1fe93cfa8e67f59137e1a185a63ec914d
treeb4902bdae78f78b64e13b49d94c16e8fd5b3211a
parentad02ae5a47fd1595f02c2b942ef696bd9b233e77
spi: of: do explicitly request modules for of-registered devices

Trying to register an SPI device asynchronously (via async_schedule() call)
results in an ugly complaint from request_module() warning about potential
deadlock (because request_module tries to wait for async works to
complete, the caller is also an async work in this case).

While we could try to switch to using request_module_nowait(), other buses,
as well as SPI itself when not using device tree, do not try to load
modules explicitly, but rather rely on the standard infrastructure (such as
udev) to execute module loading. There is no reason why SPI OF-described
devices should be treated differently.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c