mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Monchi Abbad <kernel@axion.demon.nl>
To: linux-kernel@vger.kernel.org
Subject: dvbdev fixes ( /dev/dvb/adapter0demux0 -> /dev/dvb/adapter0/demux0
Date: Wed, 7 May 2003 11:22:22 +0200	[thread overview]
Message-ID: <20030507092222.GA18446@axion.demon.nl> (raw)

[-- Attachment #1: Type: text/plain, Size: 184 bytes --]

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.

[-- Attachment #2: patch-dvbdev.diff --]
[-- Type: text/plain, Size: 820 bytes --]

--- 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);

             reply	other threads:[~2003-05-07  9:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-07  9:22 Monchi Abbad [this message]
2003-05-07  9:37 ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030507092222.GA18446@axion.demon.nl \
    --to=kernel@axion.demon.nl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®