diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-04-04 19:21:20 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-05 19:41:11 +0200 |
commit | 2f555f58f5ce33b201235e104823662d5573c4a5 (patch) | |
tree | 9b38dd59987c216fa985e349bfbd3882befe00ab /drivers/of | |
parent | usb: ulpi: Use of_request_module() (diff) | |
download | linux-2f555f58f5ce33b201235e104823662d5573c4a5.tar.xz linux-2f555f58f5ce33b201235e104823662d5573c4a5.zip |
of: device: Kill of_device_request_module()
A new helper has been introduced, of_request_module(). Users have been
converted, this helper can now be deleted.
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-13-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/device.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/of/device.c b/drivers/of/device.c index 874a2e1f6308..0f00f1b80708 100644 --- a/drivers/of/device.c +++ b/drivers/of/device.c @@ -246,15 +246,6 @@ const void *of_device_get_match_data(const struct device *dev) } EXPORT_SYMBOL(of_device_get_match_data); -int of_device_request_module(struct device *dev) -{ - if (!dev) - return -ENODEV; - - return of_request_module(dev->of_node); -} -EXPORT_SYMBOL_GPL(of_device_request_module); - /** * of_device_modalias - Fill buffer with newline terminated modalias string * @dev: Calling device |