diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-21 23:03:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-16 12:24:41 -0400 |
commit | 1ff9f542e5f87c299226557ce5e67a402ed4b502 (patch) | |
tree | 964bd7293fbf607f6a7a329d9fc40e0a2b798a96 /block | |
parent | ae87221d3ce49d9de1e43756da834fd0bf05a2ad (diff) |
device create: block: convert device_create_drvdata to device_create
Now that device_create() has been audited, rename things back to the
original call to be sane.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'block')
-rw-r--r-- | block/bsg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/bsg.c b/block/bsg.c index 56cb343c76d8..034112bfe1f3 100644 --- a/block/bsg.c +++ b/block/bsg.c | |||
@@ -1024,8 +1024,7 @@ int bsg_register_queue(struct request_queue *q, struct device *parent, | |||
1024 | bcd->release = release; | 1024 | bcd->release = release; |
1025 | kref_init(&bcd->ref); | 1025 | kref_init(&bcd->ref); |
1026 | dev = MKDEV(bsg_major, bcd->minor); | 1026 | dev = MKDEV(bsg_major, bcd->minor); |
1027 | class_dev = device_create_drvdata(bsg_class, parent, dev, NULL, | 1027 | class_dev = device_create(bsg_class, parent, dev, NULL, "%s", devname); |
1028 | "%s", devname); | ||
1029 | if (IS_ERR(class_dev)) { | 1028 | if (IS_ERR(class_dev)) { |
1030 | ret = PTR_ERR(class_dev); | 1029 | ret = PTR_ERR(class_dev); |
1031 | goto put_dev; | 1030 | goto put_dev; |