From: Dmitry Torokhov Date: Thu, 10 Aug 2006 05:18:18 +0000 (-0400) Subject: class_device_create(): make fmt argument 'const char *' X-Git-Tag: v2.6.19-rc1~1078^2~44 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ddd5d35a8f7c1924049e8b6877b3177c1787e6a3;p=linux-2.6-omap-h63xx.git class_device_create(): make fmt argument 'const char *' Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/class.c b/drivers/base/class.c index 46336f1b93b..75057aaab80 100644 --- a/drivers/base/class.c +++ b/drivers/base/class.c @@ -679,7 +679,8 @@ int class_device_register(struct class_device *class_dev) struct class_device *class_device_create(struct class *cls, struct class_device *parent, dev_t devt, - struct device *device, char *fmt, ...) + struct device *device, + const char *fmt, ...) { va_list args; struct class_device *class_dev = NULL; diff --git a/include/linux/device.h b/include/linux/device.h index 1e5f30da98b..1fec2854652 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -277,7 +277,7 @@ extern struct class_device *class_device_create(struct class *cls, struct class_device *parent, dev_t devt, struct device *device, - char *fmt, ...) + const char *fmt, ...) __attribute__((format(printf,5,6))); extern void class_device_destroy(struct class *cls, dev_t devt);