|
@@ -118,7 +118,7 @@ static ssize_t atomic_counters_read(struct file *file, char __user *buf,
|
|
u16 i;
|
|
u16 i;
|
|
struct ipath_devdata *dd;
|
|
struct ipath_devdata *dd;
|
|
|
|
|
|
- dd = file->f_dentry->d_inode->i_private;
|
|
|
|
|
|
+ dd = file->f_path.dentry->d_inode->i_private;
|
|
|
|
|
|
for (i = 0; i < NUM_COUNTERS; i++)
|
|
for (i = 0; i < NUM_COUNTERS; i++)
|
|
counters[i] = ipath_snap_cntr(dd, i);
|
|
counters[i] = ipath_snap_cntr(dd, i);
|
|
@@ -138,7 +138,7 @@ static ssize_t atomic_node_info_read(struct file *file, char __user *buf,
|
|
struct ipath_devdata *dd;
|
|
struct ipath_devdata *dd;
|
|
u64 guid;
|
|
u64 guid;
|
|
|
|
|
|
- dd = file->f_dentry->d_inode->i_private;
|
|
|
|
|
|
+ dd = file->f_path.dentry->d_inode->i_private;
|
|
|
|
|
|
guid = be64_to_cpu(dd->ipath_guid);
|
|
guid = be64_to_cpu(dd->ipath_guid);
|
|
|
|
|
|
@@ -177,7 +177,7 @@ static ssize_t atomic_port_info_read(struct file *file, char __user *buf,
|
|
u32 tmp, tmp2;
|
|
u32 tmp, tmp2;
|
|
struct ipath_devdata *dd;
|
|
struct ipath_devdata *dd;
|
|
|
|
|
|
- dd = file->f_dentry->d_inode->i_private;
|
|
|
|
|
|
+ dd = file->f_path.dentry->d_inode->i_private;
|
|
|
|
|
|
/* so we only initialize non-zero fields. */
|
|
/* so we only initialize non-zero fields. */
|
|
memset(portinfo, 0, sizeof portinfo);
|
|
memset(portinfo, 0, sizeof portinfo);
|
|
@@ -324,7 +324,7 @@ static ssize_t flash_read(struct file *file, char __user *buf,
|
|
goto bail;
|
|
goto bail;
|
|
}
|
|
}
|
|
|
|
|
|
- dd = file->f_dentry->d_inode->i_private;
|
|
|
|
|
|
+ dd = file->f_path.dentry->d_inode->i_private;
|
|
if (ipath_eeprom_read(dd, pos, tmp, count)) {
|
|
if (ipath_eeprom_read(dd, pos, tmp, count)) {
|
|
ipath_dev_err(dd, "failed to read from flash\n");
|
|
ipath_dev_err(dd, "failed to read from flash\n");
|
|
ret = -ENXIO;
|
|
ret = -ENXIO;
|
|
@@ -377,7 +377,7 @@ static ssize_t flash_write(struct file *file, const char __user *buf,
|
|
goto bail_tmp;
|
|
goto bail_tmp;
|
|
}
|
|
}
|
|
|
|
|
|
- dd = file->f_dentry->d_inode->i_private;
|
|
|
|
|
|
+ dd = file->f_path.dentry->d_inode->i_private;
|
|
if (ipath_eeprom_write(dd, pos, tmp, count)) {
|
|
if (ipath_eeprom_write(dd, pos, tmp, count)) {
|
|
ret = -ENXIO;
|
|
ret = -ENXIO;
|
|
ipath_dev_err(dd, "failed to write to flash\n");
|
|
ipath_dev_err(dd, "failed to write to flash\n");
|