···35103510{35113511 driver_unregister(&ide_cdrom_driver.gen_driver);35123512}35133513-35143514-static int ide_cdrom_init(void)35133513+35143514+static int __init ide_cdrom_init(void)35153515{35163516 return driver_register(&ide_cdrom_driver.gen_driver);35173517}
+1-1
drivers/ide/ide-disk.c
···12661266 driver_unregister(&idedisk_driver.gen_driver);12671267}1268126812691269-static int idedisk_init (void)12691269+static int __init idedisk_init(void)12701270{12711271 return driver_register(&idedisk_driver.gen_driver);12721272}
+1-4
drivers/ide/ide-floppy.c
···21912191 driver_unregister(&idefloppy_driver.gen_driver);21922192}2193219321942194-/*21952195- * idefloppy_init will register the driver for each floppy.21962196- */21972197-static int idefloppy_init (void)21942194+static int __init idefloppy_init(void)21982195{21992196 printk("ide-floppy driver " IDEFLOPPY_VERSION "\n");22002197 return driver_register(&idefloppy_driver.gen_driver);
-6
drivers/ide/ide-io.c
···16291629 * for the new rq to be completed. This is VERY DANGEROUS, and is16301630 * intended for careful use by the ATAPI tape/cdrom driver code.16311631 *16321632- * If action is ide_next, then the rq is queued immediately after16331633- * the currently-being-processed-request (if any), and the function16341634- * returns without waiting for the new rq to be completed. As above,16351635- * This is VERY DANGEROUS, and is intended for careful use by the16361636- * ATAPI tape/cdrom driver code.16371637- *16381632 * If action is ide_end, then the rq is queued at the end of the16391633 * request queue, and the function returns immediately without waiting16401634 * for the new rq to be completed. This is again intended for careful
+1-4
drivers/ide/ide-tape.c
···49164916 unregister_chrdev(IDETAPE_MAJOR, "ht");49174917}4918491849194919-/*49204920- * idetape_init will register the driver for each tape.49214921- */49224922-static int idetape_init (void)49194919+static int __init idetape_init(void)49234920{49244921 int error = 1;49254922 idetape_sysfs_class = class_create(THIS_MODULE, "ide_tape");
+3-24
drivers/ide/ide-taskfile.c
···5151#include <asm/uaccess.h>5252#include <asm/io.h>53535454-#define DEBUG_TASKFILE 0 /* unset when fixed */5555-5654static void ata_bswap_data (void *buffer, int wcount)5755{5856 u16 *p = buffer;···763765 ide_hwif_t *hwif = HWIF(drive);764766 task_struct_t *taskfile = (task_struct_t *) task->tfRegister;765767 hob_struct_t *hobfile = (hob_struct_t *) task->hobRegister;766766-#if DEBUG_TASKFILE767767- u8 status;768768-#endif769768770769 if (task->data_phase == TASKFILE_MULTI_IN ||771770 task->data_phase == TASKFILE_MULTI_OUT) {···773778 }774779775780 /*776776- * (ks) Check taskfile in/out flags.781781+ * (ks) Check taskfile in flags.777782 * If set, then execute as it is defined.778783 * If not set, then define default settings.779784 * The default values are:780780- * write and read all taskfile registers (except data) 781781- * write and read the hob registers (sector,nsector,lcyl,hcyl)785785+ * read all taskfile registers (except data)786786+ * read the hob registers (sector, nsector, lcyl, hcyl)782787 */783783- if (task->tf_out_flags.all == 0) {784784- task->tf_out_flags.all = IDE_TASKFILE_STD_OUT_FLAGS;785785- if (drive->addressing == 1)786786- task->tf_out_flags.all |= (IDE_HOB_STD_OUT_FLAGS << 8);787787- }788788-789788 if (task->tf_in_flags.all == 0) {790789 task->tf_in_flags.all = IDE_TASKFILE_STD_IN_FLAGS;791790 if (drive->addressing == 1)···791802 /* clear nIEN */792803 hwif->OUTB(drive->ctl, IDE_CONTROL_REG);793804 SELECT_MASK(drive, 0);794794-795795-#if DEBUG_TASKFILE796796- status = hwif->INB(IDE_STATUS_REG);797797- if (status & 0x80) {798798- printk("flagged_taskfile -> Bad status. Status = %02x. wait 100 usec ...\n", status);799799- udelay(100);800800- status = hwif->INB(IDE_STATUS_REG);801801- printk("flagged_taskfile -> Status = %02x\n", status);802802- }803803-#endif804805805806 if (task->tf_out_flags.b.data) {806807 u16 data = taskfile->data + (hobfile->data << 8);
···12011201 */12021202typedef enum {12031203 ide_wait, /* insert rq at end of list, and wait for it */12041204- ide_next, /* insert rq immediately after current request */12051204 ide_preempt, /* insert rq in front of current request */12061205 ide_head_wait, /* insert rq in front of current request and wait for it */12071206 ide_end /* insert rq at end of list, but don't wait for it */12081207} ide_action_t;1209120812101210-/*12111211- * This function issues a special IDE device request12121212- * onto the request queue.12131213- *12141214- * If action is ide_wait, then the rq is queued at the end of the12151215- * request queue, and the function sleeps until it has been processed.12161216- * This is for use when invoked from an ioctl handler.12171217- *12181218- * If action is ide_preempt, then the rq is queued at the head of12191219- * the request queue, displacing the currently-being-processed12201220- * request and this function returns immediately without waiting12211221- * for the new rq to be completed. This is VERY DANGEROUS, and is12221222- * intended for careful use by the ATAPI tape/cdrom driver code.12231223- *12241224- * If action is ide_next, then the rq is queued immediately after12251225- * the currently-being-processed-request (if any), and the function12261226- * returns without waiting for the new rq to be completed. As above,12271227- * This is VERY DANGEROUS, and is intended for careful use by the12281228- * ATAPI tape/cdrom driver code.12291229- *12301230- * If action is ide_end, then the rq is queued at the end of the12311231- * request queue, and the function returns immediately without waiting12321232- * for the new rq to be completed. This is again intended for careful12331233- * use by the ATAPI tape/cdrom driver code.12341234- */12351209extern int ide_do_drive_cmd(ide_drive_t *, struct request *, ide_action_t);1236121012371211/*