aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dca
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dca')
-rw-r--r--drivers/dca/dca-sysfs.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/dca/dca-sysfs.c b/drivers/dca/dca-sysfs.c
index 3d47e9d8e34f..7af4b403bd2d 100644
--- a/drivers/dca/dca-sysfs.c
+++ b/drivers/dca/dca-sysfs.c
@@ -15,8 +15,9 @@ int dca_sysfs_add_req(struct dca_provider *dca, struct device *dev, int slot)
15 struct device *cd; 15 struct device *cd;
16 static int req_count; 16 static int req_count;
17 17
18 cd = device_create(dca_class, dca->cd, MKDEV(0, slot + 1), 18 cd = device_create_drvdata(dca_class, dca->cd,
19 "requester%d", req_count++); 19 MKDEV(0, slot + 1), NULL,
20 "requester%d", req_count++);
20 if (IS_ERR(cd)) 21 if (IS_ERR(cd))
21 return PTR_ERR(cd); 22 return PTR_ERR(cd);
22 return 0; 23 return 0;
@@ -47,7 +48,8 @@ idr_try_again:
47 return err; 48 return err;
48 } 49 }
49 50
50 cd = device_create(dca_class, dev, MKDEV(0, 0), "dca%d", dca->id); 51 cd = device_create_drvdata(dca_class, dev, MKDEV(0, 0), NULL,
52 "dca%d", dca->id);
51 if (IS_ERR(cd)) { 53 if (IS_ERR(cd)) {
52 spin_lock(&dca_idr_lock); 54 spin_lock(&dca_idr_lock);
53 idr_remove(&dca_idr, dca->id); 55 idr_remove(&dca_idr, dca->id);