Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104741
b: refs/heads/master
c: 4e10673
h: refs/heads/master
i:
  104739: 92e7223
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Jul 22, 2008
1 parent 1dcb13a commit 1931b54
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ccea44fadca396b0f89aed5bdeb60e4abb212566
refs/heads/master: 4e10673944a5c386378ff9d692ae37e19993f9d5
11 changes: 4 additions & 7 deletions trunk/drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ struct device *device_create_vargs(struct class *class, struct device *parent,
EXPORT_SYMBOL_GPL(device_create_vargs);

/**
* device_create_drvdata - creates a device and registers it with sysfs
* device_create - creates a device and registers it with sysfs
* @class: pointer to the struct class that this device should be registered to
* @parent: pointer to the parent struct device of this new device, if any
* @devt: the dev_t for the char device to be added
Expand All @@ -1257,11 +1257,8 @@ EXPORT_SYMBOL_GPL(device_create_vargs);
* Note: the struct class passed to this function must have previously
* been created with a call to class_create().
*/
struct device *device_create_drvdata(struct class *class,
struct device *parent,
dev_t devt,
void *drvdata,
const char *fmt, ...)
struct device *device_create(struct class *class, struct device *parent,
dev_t devt, void *drvdata, const char *fmt, ...)
{
va_list vargs;
struct device *dev;
Expand All @@ -1271,7 +1268,7 @@ struct device *device_create_drvdata(struct class *class,
va_end(vargs);
return dev;
}
EXPORT_SYMBOL_GPL(device_create_drvdata);
EXPORT_SYMBOL_GPL(device_create);

static int __match_devt(struct device *dev, void *data)
{
Expand Down
9 changes: 4 additions & 5 deletions trunk/include/linux/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit 1931b54

Please sign in to comment.