Commit de41189b authored by Sylvain Munaut's avatar Sylvain Munaut Committed by Paul Mackerras

[POWERPC] Export of_device_get_modalias

Apparently other parts of the kernel need to know the
modalias internally (like the sysfs code in macintosh driver).

To avoid consistency issues, we export this code and use it
everywhere it's needed rather than repeat it ...
Signed-off-by: default avatarSylvain Munaut <tnt@246tNt.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent d25a9d66
...@@ -120,7 +120,7 @@ void of_device_unregister(struct of_device *ofdev) ...@@ -120,7 +120,7 @@ void of_device_unregister(struct of_device *ofdev)
} }
static ssize_t of_device_get_modalias(struct of_device *ofdev, ssize_t of_device_get_modalias(struct of_device *ofdev,
char *str, ssize_t len) char *str, ssize_t len)
{ {
const char *compat; const char *compat;
...@@ -239,3 +239,4 @@ EXPORT_SYMBOL(of_dev_get); ...@@ -239,3 +239,4 @@ EXPORT_SYMBOL(of_dev_get);
EXPORT_SYMBOL(of_dev_put); EXPORT_SYMBOL(of_dev_put);
EXPORT_SYMBOL(of_release_dev); EXPORT_SYMBOL(of_release_dev);
EXPORT_SYMBOL(of_device_uevent); EXPORT_SYMBOL(of_device_uevent);
EXPORT_SYMBOL(of_device_get_modalias);
...@@ -32,6 +32,8 @@ extern int of_device_register(struct of_device *ofdev); ...@@ -32,6 +32,8 @@ extern int of_device_register(struct of_device *ofdev);
extern void of_device_unregister(struct of_device *ofdev); extern void of_device_unregister(struct of_device *ofdev);
extern void of_release_dev(struct device *dev); extern void of_release_dev(struct device *dev);
extern ssize_t of_device_get_modalias(struct of_device *ofdev,
char *str, ssize_t len);
extern int of_device_uevent(struct device *dev, extern int of_device_uevent(struct device *dev,
char **envp, int num_envp, char *buffer, int buffer_size); char **envp, int num_envp, char *buffer, int buffer_size);
......
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