[BACK]Return to ide-generic.c CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / drivers / ide

File: [Development] / linux-2.6-xfs / drivers / ide / ide-generic.c (download)

Revision 1.2, Tue Feb 10 04:11:33 2004 UTC (13 years, 8 months ago) by nathans
Branch: MAIN
Changes since 1.1: +0 -1 lines

Merge up to 2.6.3-rc2

/*
 * generic/default IDE host driver
 *
 * Copyright (C) 2004 Bartlomiej Zolnierkiewicz
 * This code was split off from ide.c.  See it for original copyrights.
 *
 * May be copied or modified under the terms of the GNU General Public License.
 */

#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/ide.h>

static int __init ide_generic_init(void)
{
	if (ide_hwifs[0].io_ports[IDE_DATA_OFFSET])
		ide_get_lock(NULL, NULL); /* for atari only */

	(void)ideprobe_init();

	if (ide_hwifs[0].io_ports[IDE_DATA_OFFSET])
		ide_release_lock();	/* for atari only */

#ifdef CONFIG_PROC_FS
	create_proc_ide_interfaces();
#endif
	return 0;
}

module_init(ide_generic_init);

MODULE_LICENSE("GPL");