Source
537
537
char name[64];
538
538
int i;
539
539
540
540
ide_port_for_each_dev(i, drive, hwif) {
541
541
if ((drive->dev_flags & IDE_DFLAG_PRESENT) == 0)
542
542
continue;
543
543
544
544
drive->proc = proc_mkdir(drive->name, parent);
545
545
if (drive->proc) {
546
546
ide_add_proc_entries(drive->proc, generic_drive_entries, drive);
547
-
proc_create_data("setting", S_IFREG|S_IRUSR|S_IWUSR,
547
+
proc_create_data("settings", S_IFREG|S_IRUSR|S_IWUSR,
548
548
drive->proc, &ide_settings_proc_fops,
549
549
drive);
550
550
}
551
551
sprintf(name, "ide%d/%s", (drive->name[2]-'a')/2, drive->name);
552
552
ent = proc_symlink(drive->name, proc_ide_root, name);
553
553
if (!ent) return;
554
554
}
555
555
}
556
556
557
557
void ide_proc_unregister_device(ide_drive_t *drive)