[PATCH] 2.5.2: emu10k1 fixup

Bob_Tracy (rct@gherkin.frus.com)
Tue, 15 Jan 2002 22:21:32 -0600 (CST)


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
-----------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/