Commit 2f555f58 authored by Miquel Raynal's avatar Miquel Raynal Committed by Greg Kroah-Hartman

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: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230404172148.82422-13-srinivas.kandagatla@linaro.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 19697537
...@@ -246,15 +246,6 @@ const void *of_device_get_match_data(const struct device *dev) ...@@ -246,15 +246,6 @@ const void *of_device_get_match_data(const struct device *dev)
} }
EXPORT_SYMBOL(of_device_get_match_data); 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 * of_device_modalias - Fill buffer with newline terminated modalias string
* @dev: Calling device * @dev: Calling device
......
...@@ -33,7 +33,6 @@ extern void of_device_unregister(struct platform_device *ofdev); ...@@ -33,7 +33,6 @@ extern void of_device_unregister(struct platform_device *ofdev);
extern const void *of_device_get_match_data(const struct device *dev); extern const void *of_device_get_match_data(const struct device *dev);
extern ssize_t of_device_modalias(struct device *dev, char *str, ssize_t len); extern ssize_t of_device_modalias(struct device *dev, char *str, ssize_t len);
extern int of_device_request_module(struct device *dev);
extern void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env); extern void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env);
extern int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env); extern int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env);
...@@ -78,11 +77,6 @@ static inline int of_device_modalias(struct device *dev, ...@@ -78,11 +77,6 @@ static inline int of_device_modalias(struct device *dev,
return -ENODEV; return -ENODEV;
} }
static inline int of_device_request_module(struct device *dev)
{
return -ENODEV;
}
static inline int of_device_uevent_modalias(const struct device *dev, static inline int of_device_uevent_modalias(const struct device *dev,
struct kobj_uevent_env *env) struct kobj_uevent_env *env)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment