|
@@ -1059,7 +1059,7 @@ isdn_info_update(void)
|
|
|
static ssize_t
|
|
|
isdn_read(struct file *file, char __user *buf, size_t count, loff_t * off)
|
|
|
{
|
|
|
- uint minor = MINOR(file->f_dentry->d_inode->i_rdev);
|
|
|
+ uint minor = iminor(file->f_dentry->d_inode);
|
|
|
int len = 0;
|
|
|
int drvidx;
|
|
|
int chidx;
|
|
@@ -1163,7 +1163,7 @@ isdn_read(struct file *file, char __user *buf, size_t count, loff_t * off)
|
|
|
static ssize_t
|
|
|
isdn_write(struct file *file, const char __user *buf, size_t count, loff_t * off)
|
|
|
{
|
|
|
- uint minor = MINOR(file->f_dentry->d_inode->i_rdev);
|
|
|
+ uint minor = iminor(file->f_dentry->d_inode);
|
|
|
int drvidx;
|
|
|
int chidx;
|
|
|
int retval;
|
|
@@ -1225,7 +1225,7 @@ static unsigned int
|
|
|
isdn_poll(struct file *file, poll_table * wait)
|
|
|
{
|
|
|
unsigned int mask = 0;
|
|
|
- unsigned int minor = MINOR(file->f_dentry->d_inode->i_rdev);
|
|
|
+ unsigned int minor = iminor(file->f_dentry->d_inode);
|
|
|
int drvidx = isdn_minor2drv(minor - ISDN_MINOR_CTRL);
|
|
|
|
|
|
lock_kernel();
|
|
@@ -1266,7 +1266,7 @@ isdn_poll(struct file *file, poll_table * wait)
|
|
|
static int
|
|
|
isdn_ioctl(struct inode *inode, struct file *file, uint cmd, ulong arg)
|
|
|
{
|
|
|
- uint minor = MINOR(inode->i_rdev);
|
|
|
+ uint minor = iminor(inode);
|
|
|
isdn_ctrl c;
|
|
|
int drvidx;
|
|
|
int chidx;
|
|
@@ -1717,7 +1717,7 @@ isdn_ioctl(struct inode *inode, struct file *file, uint cmd, ulong arg)
|
|
|
static int
|
|
|
isdn_open(struct inode *ino, struct file *filep)
|
|
|
{
|
|
|
- uint minor = MINOR(ino->i_rdev);
|
|
|
+ uint minor = iminor(ino);
|
|
|
int drvidx;
|
|
|
int chidx;
|
|
|
int retval = -ENODEV;
|
|
@@ -1779,7 +1779,7 @@ isdn_open(struct inode *ino, struct file *filep)
|
|
|
static int
|
|
|
isdn_close(struct inode *ino, struct file *filep)
|
|
|
{
|
|
|
- uint minor = MINOR(ino->i_rdev);
|
|
|
+ uint minor = iminor(ino);
|
|
|
|
|
|
lock_kernel();
|
|
|
if (minor == ISDN_MINOR_STATUS) {
|