diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/core.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index 4dc0d272f6d9..9ae28aa709d5 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -1236,7 +1236,7 @@ error: | |||
1236 | EXPORT_SYMBOL_GPL(device_create_vargs); | 1236 | EXPORT_SYMBOL_GPL(device_create_vargs); |
1237 | 1237 | ||
1238 | /** | 1238 | /** |
1239 | * device_create_drvdata - creates a device and registers it with sysfs | 1239 | * device_create - creates a device and registers it with sysfs |
1240 | * @class: pointer to the struct class that this device should be registered to | 1240 | * @class: pointer to the struct class that this device should be registered to |
1241 | * @parent: pointer to the parent struct device of this new device, if any | 1241 | * @parent: pointer to the parent struct device of this new device, if any |
1242 | * @devt: the dev_t for the char device to be added | 1242 | * @devt: the dev_t for the char device to be added |
@@ -1257,11 +1257,8 @@ EXPORT_SYMBOL_GPL(device_create_vargs); | |||
1257 | * Note: the struct class passed to this function must have previously | 1257 | * Note: the struct class passed to this function must have previously |
1258 | * been created with a call to class_create(). | 1258 | * been created with a call to class_create(). |
1259 | */ | 1259 | */ |
1260 | struct device *device_create_drvdata(struct class *class, | 1260 | struct device *device_create(struct class *class, struct device *parent, |
1261 | struct device *parent, | 1261 | dev_t devt, void *drvdata, const char *fmt, ...) |
1262 | dev_t devt, | ||
1263 | void *drvdata, | ||
1264 | const char *fmt, ...) | ||
1265 | { | 1262 | { |
1266 | va_list vargs; | 1263 | va_list vargs; |
1267 | struct device *dev; | 1264 | struct device *dev; |
@@ -1271,7 +1268,7 @@ struct device *device_create_drvdata(struct class *class, | |||
1271 | va_end(vargs); | 1268 | va_end(vargs); |
1272 | return dev; | 1269 | return dev; |
1273 | } | 1270 | } |
1274 | EXPORT_SYMBOL_GPL(device_create_drvdata); | 1271 | EXPORT_SYMBOL_GPL(device_create); |
1275 | 1272 | ||
1276 | static int __match_devt(struct device *dev, void *data) | 1273 | static int __match_devt(struct device *dev, void *data) |
1277 | { | 1274 | { |