diff options
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; |