Example #1
0
/* 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;
}
Example #2
0
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;
}