From d24c06f073742d1458d513401e5e9b7df66801f7 Mon Sep 17 00:00:00 2001 From: Cesar Eduardo Barros Date: Wed, 19 Nov 2008 17:10:03 +0000 Subject: device model: Allow the creation of symlinks on /sys/bus/*/devices Allows the direct creation of symlinks on /sys/bus/*/devices. This is needed for a compat symlink from gta01-pm-gps.0 to neo1973-pm-gps.0 on the Openmoko Neo1973 GTA01. Signed-off-by: Cesar Eduardo Barros --- include/linux/device.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/linux/device.h b/include/linux/device.h index 1a3686d15f9..9dbff9579ef 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -48,6 +48,11 @@ extern int __must_check bus_create_file(struct bus_type *, struct bus_attribute *); extern void bus_remove_file(struct bus_type *, struct bus_attribute *); +extern int __must_check bus_create_device_link(struct bus_type *bus, + struct kobject *target, + const char *name); +extern void bus_remove_device_link(struct bus_type *bus, const char *name); + struct bus_type { const char *name; struct bus_attribute *bus_attrs; -- cgit v1.2.3