diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2007-02-12 17:13:25 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-12 13:55:13 -0400 |
commit | eb0cb8a07e320ed3237789cc4f29858338d14d8e (patch) | |
tree | 455386938b4262543ec1861c340daf6f507d22cf /include/asm-powerpc/of_device.h | |
parent | e049d1ca3094f3d1d94617f456a9961202f96e3a (diff) |
[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/asm-powerpc/of_device.h')
-rw-r--r-- | include/asm-powerpc/of_device.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-powerpc/of_device.h b/include/asm-powerpc/of_device.h index a889b2005bf5..4f1aabe0ce73 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); | |||
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 int of_device_uevent(struct device *dev, | ||
36 | char **envp, int num_envp, char *buffer, int buffer_size); | ||
37 | |||
35 | #endif /* __KERNEL__ */ | 38 | #endif /* __KERNEL__ */ |
36 | #endif /* _ASM_POWERPC_OF_DEVICE_H */ | 39 | #endif /* _ASM_POWERPC_OF_DEVICE_H */ |