ide-generic.c 670 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * generic/default IDE host driver
  3. *
  4. * Copyright (C) 2004 Bartlomiej Zolnierkiewicz
  5. * This code was split off from ide.c. See it for original copyrights.
  6. *
  7. * May be copied or modified under the terms of the GNU General Public License.
  8. */
  9. #include <linux/kernel.h>
  10. #include <linux/init.h>
  11. #include <linux/module.h>
  12. #include <linux/ide.h>
  13. static int __init ide_generic_init(void)
  14. {
  15. if (ide_hwifs[0].io_ports[IDE_DATA_OFFSET])
  16. ide_get_lock(NULL, NULL); /* for atari only */
  17. (void)ideprobe_init();
  18. if (ide_hwifs[0].io_ports[IDE_DATA_OFFSET])
  19. ide_release_lock(); /* for atari only */
  20. return 0;
  21. }
  22. module_init(ide_generic_init);
  23. MODULE_LICENSE("GPL");