diff options
Diffstat (limited to 'drivers/ide/ide-floppy.c')
-rw-r--r-- | drivers/ide/ide-floppy.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index a63aba2c8265..d36f155470a4 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
@@ -629,9 +629,9 @@ static sector_t idefloppy_capacity(ide_drive_t *drive) | |||
629 | } | 629 | } |
630 | 630 | ||
631 | #ifdef CONFIG_IDE_PROC_FS | 631 | #ifdef CONFIG_IDE_PROC_FS |
632 | ide_devset_rw(bios_cyl, 0, 1023, bios_cyl); | 632 | ide_devset_rw_field(bios_cyl, bios_cyl); |
633 | ide_devset_rw(bios_head, 0, 255, bios_head); | 633 | ide_devset_rw_field(bios_head, bios_head); |
634 | ide_devset_rw(bios_sect, 0, 63, bios_sect); | 634 | ide_devset_rw_field(bios_sect, bios_sect); |
635 | 635 | ||
636 | static int get_ticks(ide_drive_t *drive) | 636 | static int get_ticks(ide_drive_t *drive) |
637 | { | 637 | { |
@@ -646,14 +646,14 @@ static int set_ticks(ide_drive_t *drive, int arg) | |||
646 | return 0; | 646 | return 0; |
647 | } | 647 | } |
648 | 648 | ||
649 | IDE_DEVSET(ticks, S_RW, 0, 255, get_ticks, set_ticks); | 649 | IDE_DEVSET(ticks, DS_SYNC, get_ticks, set_ticks); |
650 | 650 | ||
651 | static const struct ide_devset *idefloppy_settings[] = { | 651 | static const struct ide_proc_devset idefloppy_settings[] = { |
652 | &ide_devset_bios_cyl, | 652 | IDE_PROC_DEVSET(bios_cyl, 0, 1023), |
653 | &ide_devset_bios_head, | 653 | IDE_PROC_DEVSET(bios_head, 0, 255), |
654 | &ide_devset_bios_sect, | 654 | IDE_PROC_DEVSET(bios_sect, 0, 63), |
655 | &ide_devset_ticks, | 655 | IDE_PROC_DEVSET(ticks, 0, 255), |
656 | NULL | 656 | { 0 }, |
657 | }; | 657 | }; |
658 | #endif | 658 | #endif |
659 | 659 | ||