Commit 8f8d237e authored by Christoph Hellwig's avatar Christoph Hellwig

[PATCH] bring devfs_register calls in dvb in shape

Trying to always have a NULL first argument to simplify devfs code
big time in mid-term.  (Especially in preparation of Adam's smalldevfs).
parent 1ab933b5
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment