aboutsummaryrefslogtreecommitdiff
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2007-05-07 01:38:46 +1000
committerPaul Mackerras <paulus@samba.org>2007-05-07 20:31:15 +1000
commitde41189bf6838c1c885d360e5cdf7ec6b4d336d6 (patch)
tree5b362c3bed9ed08aefcc6e9f2307ed11034c256a /include/asm-powerpc
parentd25a9d66e064e14aacc57c7fa95ca4b489df3df0 (diff)
[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: Sylvain Munaut <tnt@246tNt.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/of_device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-powerpc/of_device.h b/include/asm-powerpc/of_device.h
index 4f1aabe0ce7..e9af49eb1aa 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);
extern void of_device_unregister(struct of_device *ofdev);
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,
char **envp, int num_envp, char *buffer, int buffer_size);