summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-05-29 21:29:39 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-05-29 21:29:39 -0700
commit916941b2bfd9c4a8b66855f198ae16c3f51ef570 (patch)
tree471867d3d460f10d1620efe3c85763c4d95fa14d /include
parentfbf4d7ffda0398e8b20aa8b34ca751bf946699ef (diff)
parent413c239fad68258157f903b3ffd9bfcc53f5e34b (diff)
downloadkernel-crypto-916941b2bfd9c4a8b66855f198ae16c3f51ef570.tar.gz
kernel-crypto-916941b2bfd9c4a8b66855f198ae16c3f51ef570.tar.xz
kernel-crypto-916941b2bfd9c4a8b66855f198ae16c3f51ef570.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6: driver-core: prepare for 2.6.27 api change by adding dev_set_name
Diffstat (limited to 'include')
-rw-r--r--include/linux/device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 14616e80213..6a2d04c011b 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -385,6 +385,9 @@ static inline const char *dev_name(struct device *dev)
return dev->bus_id;
}
+extern int dev_set_name(struct device *dev, const char *name, ...)
+ __attribute__((format(printf, 2, 3)));
+
#ifdef CONFIG_NUMA
static inline int dev_to_node(struct device *dev)
{