]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/device.h
driver-core: prepare for 2.6.27 api change by adding dev_set_name
[linux-2.6-omap-h63xx.git] / include / linux / device.h
index 14616e80213cb996947ad5f77ec17903fa495f7d..6a2d04c011bc1850e4f8191cc3749699952e2b7c 100644 (file)
@@ -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)
 {