diff options
Diffstat (limited to 'drivers/ide/cris/ide-cris.c')
-rw-r--r-- | drivers/ide/cris/ide-cris.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/ide/cris/ide-cris.c b/drivers/ide/cris/ide-cris.c index 924536297036..8c3294c4d23e 100644 --- a/drivers/ide/cris/ide-cris.c +++ b/drivers/ide/cris/ide-cris.c | |||
@@ -754,8 +754,7 @@ static void cris_set_dma_mode(ide_drive_t *drive, const u8 speed) | |||
754 | cris_ide_set_speed(TYPE_DMA, 0, strobe, hold); | 754 | cris_ide_set_speed(TYPE_DMA, 0, strobe, hold); |
755 | } | 755 | } |
756 | 756 | ||
757 | void __init | 757 | static int __init init_e100_ide(void) |
758 | init_e100_ide (void) | ||
759 | { | 758 | { |
760 | hw_regs_t hw; | 759 | hw_regs_t hw; |
761 | int ide_offsets[IDE_NR_PORTS], h, i; | 760 | int ide_offsets[IDE_NR_PORTS], h, i; |
@@ -823,6 +822,8 @@ init_e100_ide (void) | |||
823 | cris_ide_set_speed(TYPE_UDMA, ATA_UDMA2_CYC, ATA_UDMA2_DVS, 0); | 822 | cris_ide_set_speed(TYPE_UDMA, ATA_UDMA2_CYC, ATA_UDMA2_DVS, 0); |
824 | 823 | ||
825 | ide_device_add(idx); | 824 | ide_device_add(idx); |
825 | |||
826 | return 0; | ||
826 | } | 827 | } |
827 | 828 | ||
828 | static cris_dma_descr_type mydescr __attribute__ ((__aligned__(16))); | 829 | static cris_dma_descr_type mydescr __attribute__ ((__aligned__(16))); |
@@ -1056,3 +1057,5 @@ static void cris_dma_start(ide_drive_t *drive) | |||
1056 | LED_DISK_READ(1); | 1057 | LED_DISK_READ(1); |
1057 | } | 1058 | } |
1058 | } | 1059 | } |
1060 | |||
1061 | module_init(init_e100_ide); | ||