diff options
Diffstat (limited to 'drivers/char/istallion.c')
-rw-r--r-- | drivers/char/istallion.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/char/istallion.c b/drivers/char/istallion.c index 7930fba4bafc..24637bbf02f7 100644 --- a/drivers/char/istallion.c +++ b/drivers/char/istallion.c | |||
@@ -4599,8 +4599,9 @@ static int __init istallion_module_init(void) | |||
4599 | 4599 | ||
4600 | istallion_class = class_create(THIS_MODULE, "staliomem"); | 4600 | istallion_class = class_create(THIS_MODULE, "staliomem"); |
4601 | for (i = 0; i < 4; i++) | 4601 | for (i = 0; i < 4; i++) |
4602 | device_create(istallion_class, NULL, MKDEV(STL_SIOMEMMAJOR, i), | 4602 | device_create_drvdata(istallion_class, NULL, |
4603 | "staliomem%d", i); | 4603 | MKDEV(STL_SIOMEMMAJOR, i), |
4604 | NULL, "staliomem%d", i); | ||
4604 | 4605 | ||
4605 | return 0; | 4606 | return 0; |
4606 | err_deinit: | 4607 | err_deinit: |