summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-08-10 01:19:19 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-25 21:08:36 -0700
commit5cbe5f8a5897470698222ac9924429056e57d84c (patch)
treec8fd5bd8680fd7fde7f779d699d1c5c280d552f3
parentddd5d35a8f7c1924049e8b6877b3177c1787e6a3 (diff)
downloadblackbird-obmc-linux-5cbe5f8a5897470698222ac9924429056e57d84c.tar.gz
blackbird-obmc-linux-5cbe5f8a5897470698222ac9924429056e57d84c.zip
device_create(): make fmt argument 'const char *'
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/base/core.c2
-rw-r--r--include/linux/device.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 04d089fd4f76..5d4b7e04471e 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -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;
diff --git a/include/linux/device.h b/include/linux/device.h
index 1fec28546525..8d92013f9ce1 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -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);
OpenPOWER on IntegriCloud