aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-07-21 23:03:34 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-07-22 00:54:47 -0400
commit4e10673944a5c386378ff9d692ae37e19993f9d5 (patch)
tree2b63ac2f30869d140d56279e55228c97fcf277c8 /include/linux/device.h
parentccea44fadca396b0f89aed5bdeb60e4abb212566 (diff)
device create: convert device_create_drvdata to device_create
Now that device_create() has been audited, rename things back to the original call to be sane. Keep the device_create_drvdata macro around to make merges easier. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index a3ef5a2d4fbb..de178712e02c 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -470,12 +470,11 @@ extern struct device *device_create_vargs(struct class *cls,
470 void *drvdata, 470 void *drvdata,
471 const char *fmt, 471 const char *fmt,
472 va_list vargs); 472 va_list vargs);
473extern struct device *device_create_drvdata(struct class *cls, 473extern struct device *device_create(struct class *cls, struct device *parent,
474 struct device *parent, 474 dev_t devt, void *drvdata,
475 dev_t devt, 475 const char *fmt, ...)
476 void *drvdata,
477 const char *fmt, ...)
478 __attribute__((format(printf, 5, 6))); 476 __attribute__((format(printf, 5, 6)));
477#define device_create_drvdata device_create
479extern void device_destroy(struct class *cls, dev_t devt); 478extern void device_destroy(struct class *cls, dev_t devt);
480 479
481/* 480/*