diff options
Diffstat (limited to 'drivers/block/aoe/aoechr.c')
-rw-r--r-- | drivers/block/aoe/aoechr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/block/aoe/aoechr.c b/drivers/block/aoe/aoechr.c index d1de68a31920..c04440cd6a32 100644 --- a/drivers/block/aoe/aoechr.c +++ b/drivers/block/aoe/aoechr.c | |||
@@ -277,8 +277,9 @@ aoechr_init(void) | |||
277 | return PTR_ERR(aoe_class); | 277 | return PTR_ERR(aoe_class); |
278 | } | 278 | } |
279 | for (i = 0; i < ARRAY_SIZE(chardevs); ++i) | 279 | for (i = 0; i < ARRAY_SIZE(chardevs); ++i) |
280 | device_create(aoe_class, NULL, | 280 | device_create_drvdata(aoe_class, NULL, |
281 | MKDEV(AOE_MAJOR, chardevs[i].minor), chardevs[i].name); | 281 | MKDEV(AOE_MAJOR, chardevs[i].minor), |
282 | NULL, chardevs[i].name); | ||
282 | 283 | ||
283 | return 0; | 284 | return 0; |
284 | } | 285 | } |