]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit22de3ef94bd191537227a7f1bb0908f368601f03
treeb4902bdae78f78b64e13b49d94c16e8fd5b3211a
parent1a7b7ee72c218ce9bff274ade13b96ea03eed03d
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