diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-21 20:03:34 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-21 21:54:47 -0700 |
commit | 4e10673944a5c386378ff9d692ae37e19993f9d5 (patch) | |
tree | 2b63ac2f30869d140d56279e55228c97fcf277c8 /include/linux/device.h | |
parent | ccea44fadca396b0f89aed5bdeb60e4abb212566 (diff) | |
download | linux-stable-4e10673944a5c386378ff9d692ae37e19993f9d5.tar.gz linux-stable-4e10673944a5c386378ff9d692ae37e19993f9d5.tar.bz2 linux-stable-4e10673944a5c386378ff9d692ae37e19993f9d5.zip |
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.h | 9 |
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, void *drvdata, const char *fmt, va_list vargs); -extern struct device *device_create_drvdata(struct class *cls, - struct device *parent, - dev_t devt, - void *drvdata, - const char *fmt, ...) +extern struct device *device_create(struct class *cls, struct device *parent, + dev_t devt, void *drvdata, + const char *fmt, ...) __attribute__((format(printf, 5, 6))); +#define device_create_drvdata device_create extern void device_destroy(struct class *cls, dev_t devt); /* |