dvbdev fixes ( /dev/dvb/adapter0demux0 -> /dev/dvb/adapter0/demux0

Monchi Abbad (kernel@axion.demon.nl)
Wed, 7 May 2003 11:22:22 +0200


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-22233-1052299391-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I found a mistake in the dvbdev.c file when creating the dvb /devfs files, it created /dev/dvb/adapter0device0 instead of /dev/dvb/adapter0/device0. But here is a simple fix.

Monchi.

--=_courier-22233-1052299391-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="patch-dvbdev.diff"

--- linux/drivers/media/dvb/dvb-core/dvbdev.c2 2003-05-05 01:53:07.000000000 +0200
+++ linux/drivers/media/dvb/dvb-core/dvbdev.c 2003-05-07 10:14:30.000000000 +0200
@@ -219,7 +219,7 @@

list_add_tail (&dvbdev->list_head, &adap->device_list);

- sprintf(name, "dvb/adapter%d%s%d", adap->num, dnames[type], id);
+ sprintf(name, "dvb/adapter%d/%s%d", adap->num, dnames[type], id);
devfs_register(NULL, name, 0, DVB_MAJOR, nums2minor(adap->num, type, id),
S_IFCHR | S_IRUSR | S_IWUSR, dvbdev->fops, dvbdev);

@@ -234,7 +234,7 @@
void dvb_unregister_device(struct dvb_device *dvbdev)
{
if (dvbdev) {
- devfs_remove("dvb/adapter%d%s%d", dvbdev->adapter->num,
+ devfs_remove("dvb/adapter%d/%s%d", dvbdev->adapter->num,
dnames[dvbdev->type], dvbdev->id);
list_del(&dvbdev->list_head);
kfree(dvbdev);

--=_courier-22233-1052299391-0001-2--