OSDN Git Service

of: Move the request module helper logic to module.c
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 4 Apr 2023 17:21:18 +0000 (18:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Apr 2023 17:41:10 +0000 (19:41 +0200)
commite6506f06d5e82765666902ccf9e9162f3e31d518
tree952da5554535f3fbeb3082863a20edb9a1cbd7a6
parentbd7a7ed774afd1a4174df34227626c95573be517
of: Move the request module helper logic to module.c

Depending on device.c for pure OF handling is considered
backwards. Let's extract the content of of_device_request_module() to
have the real logic under module.c.

The next step will be to convert users of of_device_request_module() to
use the new helper.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230404172148.82422-11-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/of/device.c
drivers/of/module.c
include/linux/of.h