ide-generic.c 702 B

1234567891011121314151617181920212223242526272829303132
  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. create_proc_ide_interfaces();
  21. return 0;
  22. }
  23. module_init(ide_generic_init);
  24. MODULE_LICENSE("GPL");