mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 2.5.2: emu10k1 fixup
@ 2002-01-16  4:21 Bob_Tracy
  0 siblings, 0 replies; only message in thread
From: Bob_Tracy @ 2002-01-16  4:21 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-16  4:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-16  4:21 [PATCH] 2.5.2: emu10k1 fixup Bob_Tracy

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®