]> err.no Git - linux-2.6/commitdiff
device_create(): make fmt argument 'const char *'
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 10 Aug 2006 05:19:19 +0000 (01:19 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Sep 2006 04:08:36 +0000 (21:08 -0700)
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c
include/linux/device.h

index 04d089fd4f761fcd38ed814d6088d35e30ddf002..5d4b7e04471e126e7e4c72cceb1abcc72d972dec 100644 (file)
@@ -583,7 +583,7 @@ static void device_create_release(struct device *dev)
  * been created with a call to class_create().
  */
 struct device *device_create(struct class *class, struct device *parent,
-                            dev_t devt, char *fmt, ...)
+                            dev_t devt, const char *fmt, ...)
 {
        va_list args;
        struct device *dev = NULL;
index 1fec2854652546a55a837a556e547a9f79a823b2..8d92013f9ce15ec31e36acbfddece5ddb853d6bb 100644 (file)
@@ -384,7 +384,7 @@ extern void device_reprobe(struct device *dev);
  * Easy functions for dynamically creating devices on the fly
  */
 extern struct device *device_create(struct class *cls, struct device *parent,
-                                   dev_t devt, char *fmt, ...)
+                                   dev_t devt, const char *fmt, ...)
                                    __attribute__((format(printf,4,5)));
 extern void device_destroy(struct class *cls, dev_t devt);