提交 5cbe5f8a 编写于 作者: G Greg Kroah-Hartman

device_create(): make fmt argument 'const char *'

Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 ddd5d35a
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册