summaryrefslogtreecommitdiff
path: root/drivers/block/paride/pt.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-07-22 03:03:34 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2008-10-16 16:24:41 (GMT)
commit1ff9f542e5f87c299226557ce5e67a402ed4b502 (patch)
tree964bd7293fbf607f6a7a329d9fc40e0a2b798a96 /drivers/block/paride/pt.c
parentae87221d3ce49d9de1e43756da834fd0bf05a2ad (diff)
downloadlinux-1ff9f542e5f87c299226557ce5e67a402ed4b502.tar.xz
device create: block: convert device_create_drvdata to device_create
Now that device_create() has been audited, rename things back to the original call to be sane. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/block/paride/pt.c')
-rw-r--r--drivers/block/paride/pt.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/block/paride/pt.c b/drivers/block/paride/pt.c
index 673b8b2..5ae2296 100644
--- a/drivers/block/paride/pt.c
+++ b/drivers/block/paride/pt.c
@@ -979,12 +979,10 @@ static int __init pt_init(void)
for (unit = 0; unit < PT_UNITS; unit++)
if (pt[unit].present) {
- device_create_drvdata(pt_class, NULL,
- MKDEV(major, unit), NULL,
- "pt%d", unit);
- device_create_drvdata(pt_class, NULL,
- MKDEV(major, unit + 128), NULL,
- "pt%dn", unit);
+ device_create(pt_class, NULL, MKDEV(major, unit), NULL,
+ "pt%d", unit);
+ device_create(pt_class, NULL, MKDEV(major, unit + 128),
+ NULL, "pt%dn", unit);
}
goto out;