Patch to compile isdn-support in2.1.45

Michael Stiller (michael@toyland.ping.de)
Thu, 17 Jul 1997 19:07:05 +0200


This is a multipart MIME message.

--==_Exmh_4152458700
Content-Type: text/plain; charset=us-ascii

The following little patch is needed to compile isdn-support in
linux-2.1.45.

-Michael

--==_Exmh_4152458700
Content-Type: text/plain ; name="45-patch"; charset=us-ascii
Content-Description: 45-patch
Content-Disposition: attachment; filename="45-patch"

--- linux/drivers/isdn/isdn_common.c.orig Thu Jul 17 18:55:54 1997
+++ linux/drivers/isdn/isdn_common.c Thu Jul 17 18:57:09 1997
@@ -1012,7 +1012,7 @@
isdn_poll(struct file *file, poll_table * wait)
{
unsigned int mask = 0;
- unsigned int minor = MINOR(file->f_inode->i_rdev);
+ unsigned int minor = MINOR(file->f_dentry->d_inode->i_rdev);
int drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL);

if (minor == ISDN_MINOR_STATUS) {
--- linux/drivers/isdn/isdn_ppp.c.orig Thu Jul 17 18:58:05 1997
+++ linux/drivers/isdn/isdn_ppp.c Thu Jul 17 18:58:28 1997
@@ -700,7 +700,7 @@
is = file->private_data;

if (is->debug & 0x2)
- printk(KERN_DEBUG "isdn_ppp_poll: minor: %d\n", MINOR(file->f_inode->i_rdev));
+ printk(KERN_DEBUG "isdn_ppp_poll: minor: %d\n", MINOR(file->f_dentry->d_inode->i_rdev));

poll_wait(&is->wq, wait);

--==_Exmh_4152458700