diff options
-rw-r--r-- | arch/powerpc/kernel/of_device.c | 5 | ||||
-rw-r--r-- | include/asm-powerpc/of_device.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/of_device.c b/arch/powerpc/kernel/of_device.c index e2c765f5f3f4..a464d67248df 100644 --- a/arch/powerpc/kernel/of_device.c +++ b/arch/powerpc/kernel/of_device.c | |||
@@ -120,8 +120,8 @@ void of_device_unregister(struct of_device *ofdev) | |||
120 | } | 120 | } |
121 | 121 | ||
122 | 122 | ||
123 | static ssize_t of_device_get_modalias(struct of_device *ofdev, | 123 | ssize_t of_device_get_modalias(struct of_device *ofdev, |
124 | char *str, ssize_t len) | 124 | char *str, ssize_t len) |
125 | { | 125 | { |
126 | const char *compat; | 126 | const char *compat; |
127 | int cplen, i; | 127 | int cplen, i; |
@@ -239,3 +239,4 @@ EXPORT_SYMBOL(of_dev_get); | |||
239 | EXPORT_SYMBOL(of_dev_put); | 239 | EXPORT_SYMBOL(of_dev_put); |
240 | EXPORT_SYMBOL(of_release_dev); | 240 | EXPORT_SYMBOL(of_release_dev); |
241 | EXPORT_SYMBOL(of_device_uevent); | 241 | EXPORT_SYMBOL(of_device_uevent); |
242 | EXPORT_SYMBOL(of_device_get_modalias); | ||
diff --git a/include/asm-powerpc/of_device.h b/include/asm-powerpc/of_device.h index 4f1aabe0ce73..e9af49eb1aa8 100644 --- a/include/asm-powerpc/of_device.h +++ b/include/asm-powerpc/of_device.h | |||
@@ -32,6 +32,8 @@ extern int of_device_register(struct of_device *ofdev); | |||
32 | extern void of_device_unregister(struct of_device *ofdev); | 32 | extern void of_device_unregister(struct of_device *ofdev); |
33 | extern void of_release_dev(struct device *dev); | 33 | extern void of_release_dev(struct device *dev); |
34 | 34 | ||
35 | extern ssize_t of_device_get_modalias(struct of_device *ofdev, | ||
36 | char *str, ssize_t len); | ||
35 | extern int of_device_uevent(struct device *dev, | 37 | extern int of_device_uevent(struct device *dev, |
36 | char **envp, int num_envp, char *buffer, int buffer_size); | 38 | char **envp, int num_envp, char *buffer, int buffer_size); |
37 | 39 | ||