linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: rct@gherkin.frus.com (Bob_Tracy)
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.5.2: emu10k1 fixup
Date: Tue, 15 Jan 2002 22:21:32 -0600 (CST)	[thread overview]
Message-ID: <m16QhZs-0005khC@gherkin.frus.com> (raw)

This is a *small* (avoiding the obvious pun) patch for the emu10k1
driver that changes MINOR() to minor() in the affected files.  Apply
to the 2.5.2 kernel source tree.


--- linux/drivers/sound/emu10k1/audio.c.orig	Thu Oct 11 06:51:46 2001
+++ linux/drivers/sound/emu10k1/audio.c	Sat Jan  5 17:55:56 2002
@@ -1098,7 +1098,7 @@
 
 static int emu10k1_audio_open(struct inode *inode, struct file *file)
 {
-	int minor = MINOR(inode->i_rdev);
+	int minor = minor(inode->i_rdev);
 	struct emu10k1_card *card = NULL;
 	struct list_head *entry;
 	struct emu10k1_wavedevice *wave_dev;
--- linux/drivers/sound/emu10k1/midi.c.orig	Thu Oct 11 06:51:46 2001
+++ linux/drivers/sound/emu10k1/midi.c	Sat Jan  5 17:59:03 2002
@@ -87,7 +87,7 @@
 
 static int emu10k1_midi_open(struct inode *inode, struct file *file)
 {
-	int minor = MINOR(inode->i_rdev);
+	int minor = minor(inode->i_rdev);
 	struct emu10k1_card *card = NULL;
 	struct emu10k1_mididevice *midi_dev;
 	struct list_head *entry;
--- linux/drivers/sound/emu10k1/mixer.c.orig	Thu Oct 11 06:51:46 2001
+++ linux/drivers/sound/emu10k1/mixer.c	Sun Jan  6 01:33:02 2002
@@ -640,7 +640,7 @@
 
 static int emu10k1_mixer_open(struct inode *inode, struct file *file)
 {
-	int minor = MINOR(inode->i_rdev);
+	int minor = minor(inode->i_rdev);
 	struct emu10k1_card *card = NULL;
 	struct list_head *entry;
 

-- 
-----------------------------------------------------------------------
Bob Tracy                   WTO + WIPO = DMCA? http://www.anti-dmca.org
rct@frus.com
-----------------------------------------------------------------------

                 reply	other threads:[~2002-01-16  4:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=m16QhZs-0005khC@gherkin.frus.com \
    --to=rct@gherkin.frus.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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;
as well as URLs for NNTP newsgroup(s).