diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 14:18:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-16 14:18:23 -0400 |
commit | abce891a10559343d8ac9f79b46d78afdba63a40 (patch) | |
tree | 4aff21669025c0dbe9f8fc7cbdd727613c554526 /block/bsg.c | |
parent | 10b275ddfd05ccb414cfe0cc56a0f47ff20fe807 (diff) |
Fix new generic block device SG compile
We had a merge issue with the "dentry" field going away from the
kobject, and being replaced by a sysfs_dirent field (named "sd")
instead. That broke the BSG compile.
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block/bsg.c')
-rw-r--r-- | block/bsg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/bsg.c b/block/bsg.c index 461c9f56f3ee..576933fe1860 100644 --- a/block/bsg.c +++ b/block/bsg.c | |||
@@ -1011,7 +1011,7 @@ retry: | |||
1011 | } | 1011 | } |
1012 | bcd->class_dev = class_dev; | 1012 | bcd->class_dev = class_dev; |
1013 | 1013 | ||
1014 | if (q->kobj.dentry) { | 1014 | if (q->kobj.sd) { |
1015 | ret = sysfs_create_link(&q->kobj, &bcd->class_dev->kobj, "bsg"); | 1015 | ret = sysfs_create_link(&q->kobj, &bcd->class_dev->kobj, "bsg"); |
1016 | if (ret) | 1016 | if (ret) |
1017 | goto err; | 1017 | goto err; |