예제 #1
0
파일: ali14xx.c 프로젝트: sarnobat/knoppix
/* Can be called directly from ide.c. */
int __init ali14xx_init(void)
{
	/* auto-detect IDE controller port */
	if (findPort()) {
		if (ali14xx_probe())
			return -ENODEV;
		return 0;
	}
	printk(KERN_ERR "ali14xx: not found.\n");
	return -ENODEV;
}
예제 #2
0
파일: ali14xx.c 프로젝트: ChineseDr/linux
static int __init ali14xx_init(void)
{
    if (probe_ali14xx == 0)
        goto out;

    /* auto-detect IDE controller port */
    if (findPort()) {
        if (ali14xx_probe())
            return -ENODEV;
        return 0;
    }
    printk(KERN_ERR "ali14xx: not found.\n");
out:
    return -ENODEV;
}