]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] bring devfs_register calls in dvb in shape
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Apr 2003 06:09:34 +0000 (23:09 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Apr 2003 06:09:34 +0000 (23:09 -0700)
Trying to always have a NULL first argument to simplify devfs code
big time in mid-term.  (Especially in preparation of Adam's smalldevfs).

drivers/media/dvb/dvb-core/dvbdev.c

index 467bae8909f9c3ea5ae08fd3acc4ce69c645405b..568d0270e8258235b136b9f79714bf7b25f70740 100644 (file)
@@ -220,9 +220,8 @@ int dvb_register_device(struct dvb_adapter *adap, struct dvb_device **pdvbdev,
 
        list_add_tail (&dvbdev->list_head, &adap->device_list);
 
-       sprintf(name, "%s%d", dnames[type], id);
-       dvbdev->devfs_handle = devfs_register(adap->devfs_handle, name,
-                                             0, DVB_MAJOR,
+       sprintf(name, "dvb/adapter%d%s%d", adap->num, dnames[type], id);
+       dvbdev->devfs_handle = devfs_register(NULL, name, 0, DVB_MAJOR,
                                              nums2minor(adap->num, type, id),
                                              S_IFCHR | S_IRUSR | S_IWUSR,
                                              dvbdev->fops, dvbdev);