diff options
Diffstat (limited to 'drivers/ide/ide-proc.c')
-rw-r--r-- | drivers/ide/ide-proc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/ide-proc.c b/drivers/ide/ide-proc.c index aa049dab3d95..30a5780f4185 100644 --- a/drivers/ide/ide-proc.c +++ b/drivers/ide/ide-proc.c | |||
@@ -413,7 +413,6 @@ void ide_add_proc_entries(struct proc_dir_entry *dir, ide_proc_entry_t *p, void | |||
413 | while (p->name != NULL) { | 413 | while (p->name != NULL) { |
414 | ent = create_proc_entry(p->name, p->mode, dir); | 414 | ent = create_proc_entry(p->name, p->mode, dir); |
415 | if (!ent) return; | 415 | if (!ent) return; |
416 | ent->nlink = 1; | ||
417 | ent->data = data; | 416 | ent->data = data; |
418 | ent->read_proc = p->read_proc; | 417 | ent->read_proc = p->read_proc; |
419 | ent->write_proc = p->write_proc; | 418 | ent->write_proc = p->write_proc; |
@@ -549,7 +548,7 @@ static int ide_drivers_open(struct inode *inode, struct file *file) | |||
549 | return single_open(file, &ide_drivers_show, NULL); | 548 | return single_open(file, &ide_drivers_show, NULL); |
550 | } | 549 | } |
551 | 550 | ||
552 | static struct file_operations ide_drivers_operations = { | 551 | static const struct file_operations ide_drivers_operations = { |
553 | .open = ide_drivers_open, | 552 | .open = ide_drivers_open, |
554 | .read = seq_read, | 553 | .read = seq_read, |
555 | .llseek = seq_lseek, | 554 | .llseek = seq_lseek, |