diff options
Diffstat (limited to 'drivers/block/paride/pt.c')
-rw-r--r-- | drivers/block/paride/pt.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/block/paride/pt.c b/drivers/block/paride/pt.c index 673b8b2fd337..5ae229656eaa 100644 --- a/drivers/block/paride/pt.c +++ b/drivers/block/paride/pt.c | |||
@@ -979,12 +979,10 @@ static int __init pt_init(void) | |||
979 | 979 | ||
980 | for (unit = 0; unit < PT_UNITS; unit++) | 980 | for (unit = 0; unit < PT_UNITS; unit++) |
981 | if (pt[unit].present) { | 981 | if (pt[unit].present) { |
982 | device_create_drvdata(pt_class, NULL, | 982 | device_create(pt_class, NULL, MKDEV(major, unit), NULL, |
983 | MKDEV(major, unit), NULL, | 983 | "pt%d", unit); |
984 | "pt%d", unit); | 984 | device_create(pt_class, NULL, MKDEV(major, unit + 128), |
985 | device_create_drvdata(pt_class, NULL, | 985 | NULL, "pt%dn", unit); |
986 | MKDEV(major, unit + 128), NULL, | ||
987 | "pt%dn", unit); | ||
988 | } | 986 | } |
989 | goto out; | 987 | goto out; |
990 | 988 | ||