diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2007-02-13 01:13:25 +0300 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-12 21:55:13 +0400 |
commit | eb0cb8a07e320ed3237789cc4f29858338d14d8e (patch) | |
tree | 455386938b4262543ec1861c340daf6f507d22cf /include/asm-powerpc/of_device.h | |
parent | e049d1ca3094f3d1d94617f456a9961202f96e3a (diff) | |
download | linux-eb0cb8a07e320ed3237789cc4f29858338d14d8e.tar.xz |
[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); 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 */ |