summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2007-02-12 23:13:25 +0100
committerPaul Mackerras <paulus@samba.org>2007-04-13 03:55:13 +1000
commiteb0cb8a07e320ed3237789cc4f29858338d14d8e (patch)
tree455386938b4262543ec1861c340daf6f507d22cf /include
parente049d1ca3094f3d1d94617f456a9961202f96e3a (diff)
downloadop-kernel-dev-eb0cb8a07e320ed3237789cc4f29858338d14d8e.zip
op-kernel-dev-eb0cb8a07e320ed3237789cc4f29858338d14d8e.tar.gz
[POWERPC] Add a unified uevent handler for bus based on of_device
This common uevent handler allow the several bus types based on of_device to generate the uevent properly and avoiding code duplication. This handlers take a struct device as argument and can therefore be used as the uevent call directly if no special treatment is needed for the bus. Signed-off-by: Sylvain Munaut <tnt@246tNt.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-powerpc/of_device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-powerpc/of_device.h b/include/asm-powerpc/of_device.h
index a889b20..4f1aabe 100644
--- a/include/asm-powerpc/of_device.h
+++ b/include/asm-powerpc/of_device.h
@@ -32,5 +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 int of_device_uevent(struct device *dev,
+ char **envp, int num_envp, char *buffer, int buffer_size);
+
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_OF_DEVICE_H */
OpenPOWER on IntegriCloud