mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.5.2-pre10] btaudio.c kdev_t compilation fixes
@ 2002-01-09 20:13 Bongani Hlope
  0 siblings, 0 replies; only message in thread
From: Bongani Hlope @ 2002-01-09 20:13 UTC (permalink / raw)
  To: LKM; +Cc: Linus Torvalds

I hope this is correct, it compiles fine but I haven't tested it yet
(still compiling)

	-- Bongani

--- /usr/src/linux-2.5/drivers/sound/btaudio.c	Wed Oct 17 23:19:20 2001
+++ /usr/src/linux-2.5-dev/drivers/sound/btaudio.c	Wed Jan  9 22:02:42
2002
@@ -300,7 +300,7 @@
 
 static int btaudio_mixer_open(struct inode *inode, struct file *file)
 {
-	int minor = MINOR(inode->i_rdev);
+	int minor = minor(inode->i_rdev);
 	struct btaudio *bta;
 
 	for (bta = btaudios; bta != NULL; bta = bta->next)
@@ -459,7 +459,7 @@
 
 static int btaudio_dsp_open_digital(struct inode *inode, struct file
*file)
 {
-	int minor = MINOR(inode->i_rdev);
+	int minor = minor(inode->i_rdev);
 	struct btaudio *bta;
 
 	for (bta = btaudios; bta != NULL; bta = bta->next)
@@ -475,7 +475,7 @@
 
 static int btaudio_dsp_open_analog(struct inode *inode, struct file
*file)
 {
-	int minor = MINOR(inode->i_rdev);
+	int minor = minor(inode->i_rdev);
 	struct btaudio *bta;
 
 	for (bta = btaudios; bta != NULL; bta = bta->next)


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

only message in thread, other threads:[~2002-01-09 20:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-09 20:13 [PATCH 2.5.2-pre10] btaudio.c kdev_t compilation fixes Bongani Hlope

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®